Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") translateModel(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|x|y|yd|ydd|k1|k2|y2|y2d|y2dd",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001767/0.001767, allocations: 206.2 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 222.6 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3303/0.3303, allocations: 43.5 MB / 313.5 MB, free: 8.25 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 64.47 kB / 382 MB, free: 8.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 57.79 MB / 439.8 MB, free: 14.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00167/0.1106, allocations: 0.6086 MB / 440.4 MB, free: 14.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006438/0.1112, allocations: 386.2 kB / 440.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.522e-05/0.1112, allocations: 0 / 440.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 2.076e-05/0.1113, allocations: 3.938 kB / 440.8 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.504e-05/0.1113, allocations: 3.938 kB / 440.8 MB, free: 13.63 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000248/0.1116, allocations: 83.8 kB / 440.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 2.882e-05/0.1116, allocations: 19.98 kB / 440.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.234e-05/0.1116, allocations: 3.984 kB / 440.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.672e-05/0.1117, allocations: 19.92 kB / 440.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.796e-05/0.1117, allocations: 15.92 kB / 441 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.895e-06/0.1117, allocations: 0 / 441 MB, free: 13.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001715/0.1119, allocations: 119.9 kB / 441.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.02e-05/0.1119, allocations: 3.984 kB / 441.1 MB, free: 13.37 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.527e-05/0.1119, allocations: 15.88 kB / 441.1 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001316/0.1121, allocations: 100.1 kB / 441.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1121, allocations: 3.938 kB / 441.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.1121, allocations: 0 / 441.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.184e-06/0.1121, allocations: 0 / 441.2 MB, free: 13.25 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003204/0.1124, allocations: 371.3 kB / 441.6 MB, free: 12.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.277e-05/0.1124, allocations: 8.031 kB / 441.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.233e-05/0.1125, allocations: 4.938 kB / 441.6 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.658e-05/0.1125, allocations: 172.2 kB / 441.7 MB, free: 12.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.825e-06/0.1126, allocations: 8.375 kB / 441.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.102e-05/0.1126, allocations: 4.375 kB / 441.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.35e-05/0.1127, allocations: 62.12 kB / 441.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1127, allocations: 192 / 441.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.1127, allocations: 3.938 kB / 441.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-06/0.1127, allocations: 0 / 441.8 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.699e-05/0.1128, allocations: 31.97 kB / 441.8 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001232/0.1129, allocations: 165.7 kB / 442 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001566/0.1131, allocations: 58.58 kB / 442.1 MB, free: 12.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.93e-05/0.1131, allocations: 24.86 kB / 442.1 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002077/0.1133, allocations: 105.1 kB / 442.2 MB, free: 12.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.826e-05/0.1133, allocations: 38.56 kB / 442.2 MB, free: 12.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.122e-06/0.1134, allocations: 0 / 442.2 MB, free: 12.04 MB / 382.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: k2 2: k1 3: x Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.04255/0.1559, allocations: 2.578 MB / 444.8 MB, free: 9.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.391e-05/0.156, allocations: 55.41 kB / 444.9 MB, free: 9.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.978e-05/0.1561, allocations: 113.8 kB / 445 MB, free: 9.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.231e-05/0.1561, allocations: 25.7 kB / 445 MB, free: 9.203 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.894e-05/0.1562, allocations: 84.14 kB / 445.1 MB, free: 9.117 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.366e-05/0.1562, allocations: 63.09 kB / 445.1 MB, free: 9.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.1564, allocations: 53.69 kB / 445.2 MB, free: 8.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1565, allocations: 322.8 kB / 445.5 MB, free: 8.672 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.1569, allocations: 175.9 kB / 445.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000357/0.1572, allocations: 171.9 kB / 445.8 MB, free: 8.332 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009724/0.1582, allocations: 419.9 kB / 446.3 MB, free: 7.922 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1582, allocations: 0 / 446.3 MB, free: 7.922 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001009/0.1592, allocations: 461.3 kB / 446.7 MB, free: 7.465 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.1593, allocations: 4 kB / 446.7 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.1593, allocations: 4 kB / 446.7 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.1593, allocations: 4 kB / 446.7 MB, free: 7.453 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003741/0.1597, allocations: 71.88 kB / 446.8 MB, free: 7.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1597, allocations: 3.984 kB / 446.8 MB, free: 7.379 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.1599, allocations: 15.98 kB / 446.8 MB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.824e-05/0.16, allocations: 19.98 kB / 446.8 MB, free: 7.344 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.1601, allocations: 121.7 kB / 446.9 MB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.215e-05/0.1601, allocations: 11.91 kB / 447 MB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.1614, allocations: 0.5407 MB / 447.5 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1614, allocations: 0 / 447.5 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1614, allocations: 4 kB / 447.5 MB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1614, allocations: 0 / 447.5 MB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/0.1635, allocations: 0.893 MB / 448.4 MB, free: 5.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.1635, allocations: 7.984 kB / 448.4 MB, free: 5.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002868/0.1638, allocations: 76.06 kB / 448.5 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.1638, allocations: 7.938 kB / 448.5 MB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.325e-05/0.1638, allocations: 15.98 kB / 448.5 MB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.1639, allocations: 0 / 448.5 MB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1639, allocations: 4 kB / 448.5 MB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008993/0.1648, allocations: 464.2 kB / 449 MB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.153e-05/0.1648, allocations: 93.02 kB / 449 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/0.1649, allocations: 4.25 kB / 449.1 MB, free: 4.977 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002026/0.1651, allocations: 23.97 kB / 449.1 MB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.812e-05/0.1651, allocations: 11.98 kB / 449.1 MB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.1652, allocations: 23.94 kB / 449.1 MB, free: 4.918 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.067e-05/0.1652, allocations: 83.27 kB / 449.2 MB, free: 4.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1652, allocations: 0 / 449.2 MB, free: 4.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008586/0.1661, allocations: 316 kB / 449.5 MB, free: 4.527 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001438/0.1675, allocations: 239 kB / 449.7 MB, free: 4.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007852/0.1683, allocations: 331.7 kB / 450.1 MB, free: 3.961 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.1683, allocations: 4 kB / 450.1 MB, free: 3.957 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003412/0.1687, allocations: 155.8 kB / 450.2 MB, free: 3.805 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.169, allocations: 8 kB / 450.2 MB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001225/0.1702, allocations: 444.5 kB / 450.7 MB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002108/0.1704, allocations: 0.6929 MB / 451.3 MB, free: 2.594 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003615/0.1708, allocations: 96.88 kB / 451.4 MB, free: 2.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001865/0.171, allocations: 47.41 kB / 451.5 MB, free: 2.453 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.171, allocations: 0 / 451.5 MB, free: 2.453 MB / 382.1 MB Notification: Performance of Templates: time 0.1681/0.3391, allocations: 17.58 MB / 469.1 MB, free: 47.11 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches