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.001147/0.001147, allocations: 106.1 kB / 18.3 MB, free: 4.887 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.001177/0.001177, allocations: 195.3 kB / 19.23 MB, free: 3.961 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.353/1.353, allocations: 222.9 MB / 242.9 MB, free: 15.21 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.2102/0.2102, allocations: 44.18 MB / 337.3 MB, free: 2.754 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001253, allocations: 70.17 kB / 409.1 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09852/0.09979, allocations: 60.83 MB / 469.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001755/0.1016, allocations: 0.5299 MB / 470.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006428/0.1022, allocations: 369.2 kB / 470.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.487e-05/0.1023, allocations: 0 / 470.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.639e-05/0.1023, allocations: 7.938 kB / 470.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.175e-05/0.1024, allocations: 3.938 kB / 470.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004039/0.1028, allocations: 111.6 kB / 470.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.841e-05/0.1028, allocations: 19.98 kB / 471 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.766e-05/0.1029, allocations: 4 kB / 471 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.181e-05/0.1029, allocations: 11.92 kB / 471 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.474e-05/0.103, allocations: 15.92 kB / 471 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.103, allocations: 4 kB / 471 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002104/0.1032, allocations: 119.9 kB / 471.1 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.178e-05/0.1032, allocations: 11.94 kB / 471.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.647e-05/0.1033, allocations: 15.92 kB / 471.1 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.1034, allocations: 96.02 kB / 471.2 MB, free: 13.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.1035, allocations: 8 kB / 471.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1035, allocations: 0 / 471.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.1035, allocations: 0 / 471.2 MB, free: 13.06 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.0004263/0.1039, allocations: 363.3 kB / 471.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.104, allocations: 12.03 kB / 471.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.66e-05/0.104, allocations: 8.844 kB / 471.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001127/0.1041, allocations: 168.3 kB / 471.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1041, allocations: 4.375 kB / 471.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.1042, allocations: 4.375 kB / 471.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001239/0.1043, allocations: 58.22 kB / 471.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.1043, allocations: 192 / 471.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.1043, allocations: 11.88 kB / 471.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.1043, allocations: 0 / 471.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.697e-05/0.1044, allocations: 23.98 kB / 471.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001723/0.1046, allocations: 177.6 kB / 472.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.1048, allocations: 54.84 kB / 472.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5e-05/0.1049, allocations: 28.78 kB / 472.1 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002662/0.1052, allocations: 105.1 kB / 472.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.105e-05/0.1052, allocations: 38.5 kB / 472.3 MB, free: 11.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.362e-06/0.1052, allocations: 4 kB / 472.3 MB, free: 11.84 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.04501/0.1502, allocations: 2.568 MB / 474.8 MB, free: 9.227 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.604e-05/0.1503, allocations: 55.41 kB / 474.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.025e-05/0.1504, allocations: 93.86 kB / 475 MB, free: 9.059 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.335e-05/0.1504, allocations: 29.7 kB / 475 MB, free: 9.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.032e-05/0.1505, allocations: 88.12 kB / 475.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.228e-05/0.1506, allocations: 63.11 kB / 475.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1507, allocations: 53.69 kB / 475.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.1508, allocations: 326.8 kB / 475.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.1512, allocations: 176.4 kB / 475.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000371/0.1516, allocations: 171.9 kB / 475.9 MB, free: 8.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.1526, allocations: 419.3 kB / 476.3 MB, free: 7.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1526, allocations: 3.938 kB / 476.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001055/0.1537, allocations: 465.3 kB / 476.7 MB, free: 7.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.1537, allocations: 7.938 kB / 476.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1537, allocations: 0 / 476.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.1537, allocations: 0 / 476.8 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003851/0.1541, allocations: 67.94 kB / 476.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.1542, allocations: 4 kB / 476.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000227/0.1544, allocations: 19.91 kB / 476.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.1544, allocations: 20 kB / 476.9 MB, free: 7.152 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.000115/0.1546, allocations: 121.8 kB / 477 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.144e-05/0.1546, allocations: 7.906 kB / 477 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001302/0.1559, allocations: 0.5393 MB / 477.5 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.1559, allocations: 7.938 kB / 477.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1559, allocations: 4.25 kB / 477.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1559, allocations: 0 / 477.5 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002134/0.1581, allocations: 0.9007 MB / 478.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1581, allocations: 3.984 kB / 478.4 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.1584, allocations: 71.89 kB / 478.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.1584, allocations: 0 / 478.5 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.887e-05/0.1585, allocations: 15.98 kB / 478.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.197e-06/0.1585, allocations: 4 kB / 478.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.1585, allocations: 0 / 478.5 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009217/0.1594, allocations: 468.4 kB / 479 MB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.032e-05/0.1595, allocations: 85.02 kB / 479.1 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.153e-05/0.1595, allocations: 11.98 kB / 479.1 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/0.1597, allocations: 15.98 kB / 479.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.669e-05/0.1598, allocations: 11.98 kB / 479.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.1598, allocations: 19.98 kB / 479.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.577e-05/0.1598, allocations: 83.28 kB / 479.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1598, allocations: 0 / 479.2 MB, free: 4.664 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008892/0.1607, allocations: 316 kB / 479.5 MB, free: 4.355 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.001431/0.1622, allocations: 235 kB / 479.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008743/0.1631, allocations: 346.1 kB / 480.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.1631, allocations: 0 / 480.1 MB, free: 3.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003644/0.1634, allocations: 147.8 kB / 480.2 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002899/0.1637, allocations: 14.08 kB / 480.2 MB, free: 3.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001316/0.1651, allocations: 448.1 kB / 480.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.1653, allocations: 0.7003 MB / 481.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000183/0.1655, allocations: 51.41 kB / 481.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1655, allocations: 0 / 481.4 MB, free: 2.352 MB / 350.1 MB Notification: Performance of Templates: time 0.01037/0.1759, allocations: 6.545 MB / 488 MB, free: 11.87 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestUtilities/TestRegSquare2Derivatives/TestRegSquare2Derivatives.csv","/var/lib/jenkins1/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