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.0008599/0.0008599, allocations: 96.27 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009977/0.0009978, allocations: 206.3 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1924/0.1924, allocations: 46.19 MB / 345.9 MB, free: 11.46 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000281/0.0002813, allocations: 8 kB / 420.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1153, allocations: 63.56 MB / 483.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.0006674/0.1161, allocations: 277.4 kB / 484 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007419/0.1168, allocations: 382.8 kB / 484.4 MB, free: 3.535 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.188e-05/0.1169, allocations: 3.938 kB / 484.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.1169, allocations: 0 / 484.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.407e-05/0.1169, allocations: 0 / 484.4 MB, free: 3.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003839/0.1173, allocations: 79.78 kB / 484.5 MB, free: 3.453 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.733e-05/0.1174, allocations: 23.92 kB / 484.5 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.574e-05/0.1174, allocations: 4 kB / 484.5 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.802e-05/0.1175, allocations: 15.94 kB / 484.5 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.772e-05/0.1175, allocations: 15.91 kB / 484.5 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.1176, allocations: 4 kB / 484.5 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.1178, allocations: 111.9 kB / 484.6 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.1178, allocations: 11.94 kB / 484.6 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.235e-05/0.1179, allocations: 45.61 kB / 484.7 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001344/0.118, allocations: 63.84 kB / 484.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.118, allocations: 0 / 484.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.118, allocations: 0 / 484.7 MB, free: 3.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.118, allocations: 0 / 484.7 MB, free: 3.156 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.0003841/0.1184, allocations: 355.7 kB / 485.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.1185, allocations: 8.031 kB / 485.1 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.294e-05/0.1185, allocations: 4.938 kB / 485.1 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.1186, allocations: 172.2 kB / 485.3 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1187, allocations: 8.375 kB / 485.3 MB, free: 2.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.1187, allocations: 8.359 kB / 485.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001276/0.1188, allocations: 54.19 kB / 485.3 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1189, allocations: 4.172 kB / 485.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.1189, allocations: 3.938 kB / 485.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1189, allocations: 4 kB / 485.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.646e-05/0.119, allocations: 23.98 kB / 485.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001757/0.1191, allocations: 169.7 kB / 485.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.1194, allocations: 58.58 kB / 485.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.792e-05/0.1194, allocations: 24.84 kB / 485.6 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002734/0.1197, allocations: 117.1 kB / 485.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.1197, allocations: 34.56 kB / 485.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.162e-06/0.1197, allocations: 0 / 485.8 MB, free: 1.945 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.04377/0.1635, allocations: 2.831 MB / 488.6 MB, free: 15.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1636, allocations: 55.39 kB / 488.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.915e-05/0.1637, allocations: 101.9 kB / 488.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.952e-05/0.1638, allocations: 29.7 kB / 488.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.1638, allocations: 84.14 kB / 488.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.723e-05/0.1639, allocations: 63.09 kB / 488.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.491e-05/0.1639, allocations: 17.72 kB / 488.9 MB, free: 14.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1641, allocations: 326.8 kB / 489.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.1645, allocations: 187.9 kB / 489.4 MB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003897/0.1649, allocations: 199.8 kB / 489.6 MB, free: 13.99 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.166, allocations: 447.1 kB / 490.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.166, allocations: 480 / 490.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001077/0.1671, allocations: 493.3 kB / 490.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1671, allocations: 4 kB / 490.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.1671, allocations: 0 / 490.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.1671, allocations: 0 / 490.6 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.1675, allocations: 87.81 kB / 490.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.1675, allocations: 0 / 490.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002317/0.1678, allocations: 23.98 kB / 490.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.1678, allocations: 19.98 kB / 490.7 MB, free: 12.93 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.0001299/0.168, allocations: 121.8 kB / 490.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.921e-05/0.168, allocations: 11.89 kB / 490.8 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.1693, allocations: 0.5704 MB / 491.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.1694, allocations: 4 kB / 491.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1694, allocations: 0 / 491.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1694, allocations: 0 / 491.4 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.1716, allocations: 0.9518 MB / 492.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1716, allocations: 4.188 kB / 492.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003036/0.1719, allocations: 75.88 kB / 492.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.1719, allocations: 4 kB / 492.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.1719, allocations: 19.98 kB / 492.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.172, allocations: 0 / 492.5 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.172, allocations: 7.984 kB / 492.5 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009683/0.1729, allocations: 0.4887 MB / 492.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.173, allocations: 89.02 kB / 493 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.867e-05/0.173, allocations: 7.984 kB / 493 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.1733, allocations: 31.98 kB / 493.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.733e-05/0.1733, allocations: 15.98 kB / 493.1 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.1733, allocations: 15.98 kB / 493.1 MB, free: 10.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.714e-05/0.1734, allocations: 79.28 kB / 493.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1734, allocations: 3.938 kB / 493.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008947/0.1743, allocations: 316 kB / 493.5 MB, free: 9.992 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.001375/0.1757, allocations: 235 kB / 493.7 MB, free: 9.754 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008639/0.1765, allocations: 367.7 kB / 494.1 MB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1766, allocations: 0 / 494.1 MB, free: 9.395 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003655/0.1769, allocations: 168.2 kB / 494.2 MB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000283/0.1772, allocations: 14.5 kB / 494.3 MB, free: 9.223 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001319/0.1785, allocations: 0.5057 MB / 494.8 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.1788, allocations: 0.7007 MB / 495.5 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001879/0.179, allocations: 51.41 kB / 495.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.179, allocations: 0 / 495.5 MB, free: 7.879 MB / 366.1 MB Notification: Performance of Templates: time 0.01051/0.1895, allocations: 6.536 MB / 0.4903 GB, free: 1.391 MB / 366.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 -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