Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00128/0.00128, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1933/0.1933, allocations: 46.1 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 75.89 kB / 419 MB, free: 19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09577, allocations: 62.43 MB / 481.4 MB, free: 4.535 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001646/0.09745, allocations: 0.5337 MB / 482 MB, free: 4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006132/0.09808, allocations: 369.3 kB / 482.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.285e-05/0.09811, allocations: 4 kB / 482.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.69e-05/0.09814, allocations: 3.938 kB / 482.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.31e-05/0.09817, allocations: 0 / 482.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003532/0.09853, allocations: 103.7 kB / 482.5 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.935e-05/0.0986, allocations: 27.91 kB / 482.5 MB, free: 3.504 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.099e-05/0.09864, allocations: 7.984 kB / 482.5 MB, free: 3.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.954e-05/0.09867, allocations: 11.94 kB / 482.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.954e-05/0.09872, allocations: 15.92 kB / 482.5 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.513e-05/0.09875, allocations: 11.94 kB / 482.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001862/0.09894, allocations: 115.9 kB / 482.6 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.504e-05/0.09896, allocations: 7.938 kB / 482.6 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.239e-05/0.09899, allocations: 15.92 kB / 482.7 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.09915, allocations: 99.73 kB / 482.8 MB, free: 3.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.09916, allocations: 4 kB / 482.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.09917, allocations: 0 / 482.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.847e-06/0.09917, allocations: 0 / 482.8 MB, free: 3.219 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.0003734/0.09955, allocations: 355.4 kB / 483.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.0996, allocations: 16.03 kB / 483.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.764e-05/0.09963, allocations: 4.844 kB / 483.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.69e-05/0.09973, allocations: 168.3 kB / 483.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.09975, allocations: 4.375 kB / 483.3 MB, free: 2.594 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.09978, allocations: 4.375 kB / 483.3 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.09989, allocations: 58.17 kB / 483.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.09991, allocations: 192 / 483.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.09993, allocations: 11.92 kB / 483.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.09994, allocations: 0 / 483.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.907e-05/0.1, allocations: 27.98 kB / 483.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001587/0.1002, allocations: 173.6 kB / 483.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001828/0.1004, allocations: 58.59 kB / 483.6 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.603e-05/0.1004, allocations: 24.84 kB / 483.7 MB, free: 2.176 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002315/0.1006, allocations: 109.1 kB / 483.8 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.777e-05/0.1007, allocations: 34.56 kB / 483.8 MB, free: 2.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.072e-06/0.1007, allocations: 0 / 483.8 MB, free: 2.008 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.03982/0.1405, allocations: 2.586 MB / 486.4 MB, free: 15.39 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.773e-05/0.1406, allocations: 55.41 kB / 486.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.453e-05/0.1406, allocations: 101.8 kB / 486.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.1407, allocations: 25.7 kB / 486.6 MB, free: 15.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.891e-05/0.1407, allocations: 88.14 kB / 486.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.085e-05/0.1408, allocations: 63.05 kB / 486.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.1409, allocations: 53.69 kB / 486.8 MB, free: 14.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.141, allocations: 326.8 kB / 487.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003556/0.1414, allocations: 175.9 kB / 487.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003302/0.1417, allocations: 167.9 kB / 487.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009322/0.1426, allocations: 416.7 kB / 487.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.1427, allocations: 0 / 487.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0009284/0.1436, allocations: 467.6 kB / 488.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.331e-05/0.1436, allocations: 4 kB / 488.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1436, allocations: 0 / 488.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.1436, allocations: 0 / 488.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000356/0.144, allocations: 71.88 kB / 488.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.144, allocations: 7.984 kB / 488.4 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002022/0.1442, allocations: 19.97 kB / 488.4 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.476e-05/0.1443, allocations: 16.47 kB / 488.4 MB, free: 13.32 MB / 366.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.0001176/0.1444, allocations: 129.7 kB / 488.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.494e-05/0.1444, allocations: 7.906 kB / 488.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001127/0.1456, allocations: 0.5368 MB / 489.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1456, allocations: 0 / 489.1 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.1456, allocations: 7.938 kB / 489.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.1456, allocations: 3.984 kB / 489.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001943/0.1476, allocations: 0.8815 MB / 490 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1476, allocations: 4.031 kB / 490 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.1478, allocations: 71.89 kB / 490 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.1479, allocations: 0 / 490 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.879e-05/0.1479, allocations: 15.98 kB / 490 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1479, allocations: 4.25 kB / 490 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.1479, allocations: 4 kB / 490.1 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.1487, allocations: 470.7 kB / 490.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.326e-05/0.1488, allocations: 89.02 kB / 490.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/0.1488, allocations: 7.984 kB / 490.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.149, allocations: 15.98 kB / 490.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.35e-05/0.149, allocations: 15.92 kB / 490.6 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/0.1491, allocations: 19.98 kB / 490.7 MB, free: 10.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.231e-05/0.1491, allocations: 83.28 kB / 490.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1491, allocations: 0 / 490.7 MB, free: 10.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007149/0.1498, allocations: 320 kB / 491.1 MB, free: 10.52 MB / 366.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.001119/0.151, allocations: 223 kB / 491.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000716/0.1517, allocations: 347.7 kB / 491.6 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.1517, allocations: 0 / 491.6 MB, free: 9.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003092/0.152, allocations: 147.7 kB / 491.8 MB, free: 9.816 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002536/0.1523, allocations: 14.48 kB / 491.8 MB, free: 9.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001142/0.1534, allocations: 418.8 kB / 492.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002231/0.1537, allocations: 0.6926 MB / 492.9 MB, free: 8.625 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000242/0.1539, allocations: 92.83 kB / 493 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001676/0.1541, allocations: 55.39 kB / 493 MB, free: 8.477 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1541, allocations: 0 / 493 MB, free: 8.477 MB / 366.1 MB Notification: Performance of Templates: time 0.01957/0.1737, allocations: 17.77 MB / 0.4988 GB, free: 6.715 MB / 382.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches