Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001002/0.001002, allocations: 95.61 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 172.7 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1891/0.1891, allocations: 44.24 MB / 337.7 MB, free: 2.434 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002757, allocations: 8 kB / 410.3 MB, free: 27.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1011, allocations: 61.92 MB / 472.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.000679/0.1019, allocations: 270.7 kB / 472.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007857/0.1027, allocations: 388.5 kB / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.403e-05/0.1027, allocations: 0 / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.1028, allocations: 3.938 kB / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.023e-05/0.1028, allocations: 0 / 472.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.1032, allocations: 83.77 kB / 473 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.98e-05/0.1033, allocations: 19.98 kB / 473 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.869e-05/0.1033, allocations: 4 kB / 473 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.313e-05/0.1034, allocations: 15.94 kB / 473 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.718e-05/0.1034, allocations: 11.92 kB / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.618e-05/0.1035, allocations: 7.984 kB / 473 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.1037, allocations: 111.9 kB / 473.1 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.114e-05/0.1037, allocations: 11.94 kB / 473.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.473e-05/0.1038, allocations: 45.56 kB / 473.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001881/0.104, allocations: 99.73 kB / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.104, allocations: 0 / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.104, allocations: 0 / 473.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.104, allocations: 0 / 473.3 MB, free: 12.28 MB / 350.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.0003817/0.1044, allocations: 358 kB / 473.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.558e-05/0.1044, allocations: 8.031 kB / 473.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.637e-05/0.1045, allocations: 8.938 kB / 473.7 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001201/0.1046, allocations: 168.2 kB / 473.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.1046, allocations: 4.375 kB / 473.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.38e-05/0.1047, allocations: 4.375 kB / 473.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.1048, allocations: 58.17 kB / 473.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.1048, allocations: 192 / 473.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.1048, allocations: 3.938 kB / 473.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.1048, allocations: 4 kB / 473.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.282e-05/0.1049, allocations: 31.98 kB / 473.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001672/0.1051, allocations: 165.7 kB / 474.1 MB, free: 11.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001988/0.1053, allocations: 62.59 kB / 474.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.164e-05/0.1053, allocations: 32.78 kB / 474.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002713/0.1056, allocations: 121 kB / 474.3 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.148e-05/0.1057, allocations: 30.56 kB / 474.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.1057, allocations: 0 / 474.3 MB, free: 11.06 MB / 350.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.04593/0.1516, allocations: 2.819 MB / 477.2 MB, free: 8.199 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.1517, allocations: 51.41 kB / 477.2 MB, free: 8.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.847e-05/0.1517, allocations: 101.9 kB / 477.3 MB, free: 8.027 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.1518, allocations: 25.7 kB / 477.3 MB, free: 7.996 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.319e-05/0.1518, allocations: 92.12 kB / 477.4 MB, free: 7.902 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-05/0.1519, allocations: 63.09 kB / 477.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.152, allocations: 18.19 kB / 477.5 MB, free: 7.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1521, allocations: 326.8 kB / 477.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004123/0.1525, allocations: 187.9 kB / 478 MB, free: 7.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003852/0.1529, allocations: 195.9 kB / 478.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.154, allocations: 451 kB / 478.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.154, allocations: 3.938 kB / 478.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001072/0.1551, allocations: 493.3 kB / 479.1 MB, free: 6.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.1551, allocations: 4 kB / 479.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1551, allocations: 0 / 479.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.1551, allocations: 0 / 479.1 MB, free: 6.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003762/0.1555, allocations: 87.88 kB / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1555, allocations: 0 / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.1557, allocations: 27.97 kB / 479.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.41e-05/0.1558, allocations: 19.98 kB / 479.3 MB, free: 6.043 MB / 350.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.0001224/0.1559, allocations: 121.8 kB / 479.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.1559, allocations: 7.906 kB / 479.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.1573, allocations: 0.5707 MB / 480 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.04e-06/0.1573, allocations: 4 kB / 480 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.1573, allocations: 256 / 480 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.1573, allocations: 7.984 kB / 480 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/0.1595, allocations: 0.9595 MB / 480.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1595, allocations: 0 / 480.9 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002859/0.1598, allocations: 71.89 kB / 481 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.1598, allocations: 4 kB / 481 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.583e-05/0.1598, allocations: 19.98 kB / 481 MB, free: 4.199 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1599, allocations: 4 kB / 481 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1599, allocations: 0 / 481 MB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009371/0.1608, allocations: 0.4924 MB / 481.5 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.817e-05/0.1609, allocations: 89 kB / 481.6 MB, free: 3.562 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.392e-05/0.1609, allocations: 4 kB / 481.6 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.1611, allocations: 27.98 kB / 481.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.98e-05/0.1612, allocations: 15.98 kB / 481.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.663e-05/0.1612, allocations: 15.98 kB / 481.7 MB, free: 3.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.467e-05/0.1612, allocations: 83.28 kB / 481.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1612, allocations: 0 / 481.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008822/0.1621, allocations: 312 kB / 482.1 MB, free: 3.113 MB / 350.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.001295/0.1634, allocations: 251.5 kB / 482.3 MB, free: 2.855 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008285/0.1643, allocations: 363.7 kB / 482.7 MB, free: 2.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1643, allocations: 4 kB / 482.7 MB, free: 2.496 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003516/0.1646, allocations: 164.1 kB / 482.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002719/0.1649, allocations: 13.89 kB / 482.8 MB, free: 2.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001307/0.1662, allocations: 0.4916 MB / 483.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002698/0.1665, allocations: 0.689 MB / 484 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003664/0.1669, allocations: 92.88 kB / 484.1 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001724/0.1671, allocations: 47.41 kB / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1671, allocations: 0 / 484.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of Templates: time 0.02266/0.1897, allocations: 17.57 MB / 0.49 GB, free: 15.39 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches