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.001023/0.001023, allocations: 101.9 kB / 16.02 MB, free: 76 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.001274/0.001274, allocations: 185.6 kB / 16.92 MB, free: 6.918 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.419/1.419, allocations: 205.4 MB / 223.1 MB, free: 5.766 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.3392/0.3392, allocations: 43.57 MB / 315 MB, free: 8.672 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.0005303/0.0005305, allocations: 16 kB / 384.6 MB, free: 7.656 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1095, allocations: 58.86 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.000604/0.1101, allocations: 284.2 kB / 443.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006882/0.1108, allocations: 382.2 kB / 444.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.525e-05/0.1108, allocations: 0 / 444.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.138e-05/0.1109, allocations: 0 / 444.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.573e-05/0.1109, allocations: 4 kB / 444.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.1112, allocations: 79.73 kB / 444.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.352e-05/0.1113, allocations: 27.91 kB / 444.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.1113, allocations: 0 / 444.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.438e-05/0.1113, allocations: 15.94 kB / 444.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.094e-05/0.1114, allocations: 15.92 kB / 444.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.1114, allocations: 0 / 444.2 MB, free: 11.9 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002086/0.1116, allocations: 123.9 kB / 444.4 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.445e-05/0.1117, allocations: 8 kB / 444.4 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.195e-05/0.1117, allocations: 41.56 kB / 444.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001603/0.1119, allocations: 96.08 kB / 444.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1119, allocations: 0 / 444.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.644e-06/0.1119, allocations: 0 / 444.5 MB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.827e-06/0.1119, allocations: 0 / 444.5 MB, free: 11.63 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.0003523/0.1123, allocations: 359.4 kB / 444.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1123, allocations: 12.02 kB / 444.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/0.1123, allocations: 8.844 kB / 444.9 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.1124, allocations: 168.3 kB / 445 MB, free: 11.01 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.1125, allocations: 12.38 kB / 445 MB, free: 11 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.012e-05/0.1125, allocations: 4.281 kB / 445 MB, free: 10.99 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.1126, allocations: 62.17 kB / 445.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1126, allocations: 192 / 445.1 MB, free: 10.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.027e-05/0.1126, allocations: 3.938 kB / 445.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.1127, allocations: 0 / 445.1 MB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.984e-05/0.1127, allocations: 23.98 kB / 445.1 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.1129, allocations: 169.7 kB / 445.3 MB, free: 10.68 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.1131, allocations: 66.52 kB / 445.4 MB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.866e-05/0.1131, allocations: 24.84 kB / 445.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002488/0.1134, allocations: 113.1 kB / 445.5 MB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.322e-05/0.1134, allocations: 42.55 kB / 445.5 MB, free: 10.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=9): time 1.133e-06/0.1134, allocations: 0 / 445.5 MB, free: 10.4 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.04387/0.1573, allocations: 2.813 MB / 448.4 MB, free: 7.555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.1574, allocations: 55.34 kB / 448.4 MB, free: 7.488 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.27e-05/0.1575, allocations: 101.9 kB / 448.5 MB, free: 7.379 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.1575, allocations: 30.17 kB / 448.5 MB, free: 7.344 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.088e-05/0.1576, allocations: 80.14 kB / 448.6 MB, free: 7.262 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.269e-05/0.1577, allocations: 67 kB / 448.7 MB, free: 7.195 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.805e-05/0.1577, allocations: 17.72 kB / 448.7 MB, free: 7.172 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.1578, allocations: 326.8 kB / 449 MB, free: 6.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003961/0.1582, allocations: 195.8 kB / 449.2 MB, free: 6.652 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000383/0.1586, allocations: 195.8 kB / 449.4 MB, free: 6.461 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.1597, allocations: 448 kB / 449.8 MB, free: 6.023 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1597, allocations: 0 / 449.8 MB, free: 6.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001093/0.1608, allocations: 493.3 kB / 450.3 MB, free: 5.535 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1609, allocations: 8 kB / 450.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1609, allocations: 0 / 450.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.1609, allocations: 0 / 450.3 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003731/0.1613, allocations: 79.88 kB / 450.4 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.1613, allocations: 3.984 kB / 450.4 MB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002276/0.1615, allocations: 31.97 kB / 450.4 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.589e-05/0.1616, allocations: 16.25 kB / 450.5 MB, free: 5.398 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.00013/0.1617, allocations: 121.8 kB / 450.6 MB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.1617, allocations: 7.906 kB / 450.6 MB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.1631, allocations: 0.5759 MB / 451.2 MB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.1631, allocations: 4 kB / 451.2 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.1631, allocations: 0 / 451.2 MB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1631, allocations: 3.984 kB / 451.2 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002109/0.1652, allocations: 0.9556 MB / 452.1 MB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1652, allocations: 3.984 kB / 452.1 MB, free: 3.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.1655, allocations: 76.08 kB / 452.2 MB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/0.1655, allocations: 4 kB / 452.2 MB, free: 3.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.964e-05/0.1656, allocations: 23.92 kB / 452.2 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1656, allocations: 0 / 452.2 MB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.1656, allocations: 4 kB / 452.2 MB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009548/0.1666, allocations: 495.7 kB / 452.7 MB, free: 3.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.092e-05/0.1666, allocations: 89.02 kB / 452.8 MB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.1666, allocations: 7.984 kB / 452.8 MB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002135/0.1669, allocations: 27.98 kB / 452.8 MB, free: 2.875 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.479e-05/0.1669, allocations: 7.984 kB / 452.8 MB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.814e-05/0.1669, allocations: 23.98 kB / 452.9 MB, free: 2.844 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.103e-05/0.167, allocations: 83.28 kB / 452.9 MB, free: 2.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.167, allocations: 3.938 kB / 453 MB, free: 2.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008443/0.1678, allocations: 316 kB / 453.3 MB, free: 2.449 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.001305/0.1691, allocations: 243 kB / 453.5 MB, free: 2.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008515/0.17, allocations: 367.7 kB / 453.9 MB, free: 1.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.17, allocations: 0 / 453.9 MB, free: 1.844 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000374/0.1704, allocations: 176.3 kB / 454 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.1707, allocations: 11.66 kB / 454 MB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.172, allocations: 488.1 kB / 454.5 MB, free: 1.141 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.1722, allocations: 0.6968 MB / 455.2 MB, free: 424 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003684/0.1726, allocations: 97 kB / 455.3 MB, free: 324 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.1728, allocations: 55.41 kB / 455.4 MB, free: 268 kB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1728, allocations: 3.938 kB / 455.4 MB, free: 264 kB / 382.1 MB Notification: Performance of Templates: time 0.1998/0.3726, allocations: 17.56 MB / 472.9 MB, free: 44.09 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