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.001433/0.001434, allocations: 104.7 kB / 17.63 MB, free: 5.344 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.001642/0.001643, allocations: 192 kB / 18.56 MB, free: 4.434 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.231/1.231, allocations: 222.9 MB / 242.2 MB, free: 15.16 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.1882/0.1882, allocations: 44.18 MB / 336.6 MB, free: 2.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 68.42 kB / 408.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09765/0.09885, allocations: 60.83 MB / 469.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001533/0.1004, allocations: 0.5298 MB / 469.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005777/0.101, allocations: 377.1 kB / 470.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.877e-05/0.101, allocations: 0 / 470.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.1011, allocations: 0 / 470.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.564e-05/0.1011, allocations: 3.938 kB / 470.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.1014, allocations: 107.7 kB / 470.3 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.635e-05/0.1015, allocations: 23.92 kB / 470.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.139e-05/0.1015, allocations: 4 kB / 470.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.312e-05/0.1016, allocations: 19.91 kB / 470.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.341e-05/0.1016, allocations: 15.92 kB / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.1016, allocations: 8 kB / 470.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001937/0.1018, allocations: 115.9 kB / 470.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.448e-05/0.1019, allocations: 7.922 kB / 470.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.049e-05/0.1019, allocations: 11.94 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.102, allocations: 104 kB / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1021, allocations: 0 / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1021, allocations: 0 / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.1021, allocations: 0 / 470.6 MB, free: 13.05 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.0003548/0.1024, allocations: 370.1 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.1025, allocations: 12.03 kB / 470.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.996e-05/0.1025, allocations: 8.844 kB / 470.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.618e-05/0.1026, allocations: 172.3 kB / 471.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.1026, allocations: 4.375 kB / 471.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.1026, allocations: 384 / 471.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.906e-05/0.1027, allocations: 54.19 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.1028, allocations: 4.188 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.247e-06/0.1028, allocations: 3.938 kB / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1028, allocations: 0 / 471.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.089e-05/0.1029, allocations: 31.97 kB / 471.2 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.103, allocations: 173.6 kB / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001859/0.1032, allocations: 62.56 kB / 471.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.089e-05/0.1033, allocations: 20.86 kB / 471.5 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002326/0.1035, allocations: 109.1 kB / 471.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.943e-05/0.1035, allocations: 38.56 kB / 471.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.012e-06/0.1035, allocations: 0 / 471.6 MB, free: 11.83 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.04232/0.1458, allocations: 2.561 MB / 474.2 MB, free: 9.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.1459, allocations: 55.41 kB / 474.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.611e-05/0.146, allocations: 101.8 kB / 474.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.146, allocations: 29.7 kB / 474.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.073e-05/0.1461, allocations: 84.14 kB / 474.4 MB, free: 8.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.845e-05/0.1462, allocations: 59.11 kB / 474.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001189/0.1463, allocations: 57.67 kB / 474.5 MB, free: 8.809 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.714e-05/0.1464, allocations: 326.8 kB / 474.9 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003633/0.1468, allocations: 171.9 kB / 475 MB, free: 8.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.1471, allocations: 183.8 kB / 475.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009585/0.1481, allocations: 411.4 kB / 475.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.1481, allocations: 0 / 475.6 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001015/0.1491, allocations: 469.3 kB / 476.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.1491, allocations: 4 kB / 476.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1492, allocations: 0 / 476.1 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.1492, allocations: 4 kB / 476.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003677/0.1495, allocations: 71.88 kB / 476.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.1496, allocations: 0 / 476.1 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002063/0.1498, allocations: 23.97 kB / 476.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.33e-05/0.1498, allocations: 15.98 kB / 476.2 MB, free: 7.148 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.0001109/0.1499, allocations: 121.8 kB / 476.3 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.926e-05/0.15, allocations: 7.906 kB / 476.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00123/0.1512, allocations: 0.5427 MB / 476.9 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1512, allocations: 4 kB / 476.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.1512, allocations: 0 / 476.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.1512, allocations: 4 kB / 476.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001995/0.1532, allocations: 0.9006 MB / 477.8 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.1533, allocations: 4.469 kB / 477.8 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000266/0.1535, allocations: 67.88 kB / 477.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1535, allocations: 4 kB / 477.8 MB, free: 5.414 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.1536, allocations: 8 kB / 477.8 MB, free: 5.406 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1536, allocations: 7.984 kB / 477.9 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.1536, allocations: 7.938 kB / 477.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008607/0.1545, allocations: 468.4 kB / 478.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.1545, allocations: 85.02 kB / 478.4 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.584e-05/0.1546, allocations: 4 kB / 478.4 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000199/0.1548, allocations: 23.97 kB / 478.4 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.316e-05/0.1548, allocations: 11.98 kB / 478.4 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/0.1548, allocations: 20 kB / 478.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.406e-05/0.1549, allocations: 87.27 kB / 478.5 MB, free: 4.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1549, allocations: 3.938 kB / 478.5 MB, free: 4.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008237/0.1557, allocations: 312 kB / 478.9 MB, free: 4.344 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.001229/0.1569, allocations: 231 kB / 479.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000808/0.1578, allocations: 350.2 kB / 479.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1578, allocations: 0 / 479.4 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003402/0.1581, allocations: 148.2 kB / 479.6 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.1584, allocations: 17.88 kB / 479.6 MB, free: 3.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.1596, allocations: 410.5 kB / 480 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000249/0.1599, allocations: 0.7043 MB / 480.7 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003637/0.1603, allocations: 92.88 kB / 480.8 MB, free: 2.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001706/0.1605, allocations: 47.41 kB / 480.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1605, allocations: 3.938 kB / 480.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of Templates: time 0.02122/0.1817, allocations: 17.78 MB / 498.6 MB, free: 0.5352 MB / 366.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches