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.001587/0.001587, allocations: 118.1 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001919/0.001919, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2098/0.2098, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002621/0.002621, allocations: 75.88 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3514/0.3541, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.00155/0.3557, allocations: 0.5529 MB / 0.5315 GB, free: 13.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006299/0.3563, allocations: 359.1 kB / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.352e-05/0.3563, allocations: 1.125 kB / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.225e-05/0.3564, allocations: 0 / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.529e-05/0.3564, allocations: 3.938 kB / 0.5319 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003721/0.3568, allocations: 103.8 kB / 0.532 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.049e-05/0.3568, allocations: 35.17 kB / 0.532 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.958e-05/0.3569, allocations: 2.75 kB / 0.532 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.293e-05/0.3569, allocations: 12.88 kB / 0.532 GB, free: 12.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.034e-05/0.357, allocations: 21.23 kB / 0.532 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.434e-05/0.357, allocations: 1.25 kB / 0.532 GB, free: 12.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002272/0.3572, allocations: 122.5 kB / 0.5321 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.632e-05/0.3573, allocations: 10.06 kB / 0.5322 GB, free: 12.73 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.707e-05/0.3573, allocations: 15.17 kB / 0.5322 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.3575, allocations: 95.33 kB / 0.5323 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3575, allocations: 0 / 0.5323 GB, free: 12.66 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3575, allocations: 5.438 kB / 0.5323 GB, free: 12.65 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.2e-06/0.3575, allocations: 0 / 0.5323 GB, free: 12.65 MB / 398.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.0004657/0.358, allocations: 365.4 kB / 0.5326 GB, free: 12.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.463e-05/0.358, allocations: 8.812 kB / 0.5326 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.671e-05/0.3581, allocations: 7.906 kB / 0.5326 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.3582, allocations: 164.9 kB / 0.5328 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3582, allocations: 1.531 kB / 0.5328 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.3582, allocations: 3.906 kB / 0.5328 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.3584, allocations: 58.17 kB / 0.5328 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.3584, allocations: 5.438 kB / 0.5328 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.457e-05/0.3584, allocations: 7.938 kB / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.3584, allocations: 1.125 kB / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.775e-05/0.3585, allocations: 24.27 kB / 0.5329 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001678/0.3587, allocations: 175.3 kB / 0.533 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002085/0.3589, allocations: 57.47 kB / 0.5331 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.734e-05/0.359, allocations: 28.38 kB / 0.5331 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002396/0.3592, allocations: 113.5 kB / 0.5332 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.3592, allocations: 35.66 kB / 0.5333 GB, free: 11.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.212e-06/0.3592, allocations: 1.219 kB / 0.5333 GB, free: 11.57 MB / 398.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.03997/0.3992, allocations: 2.57 MB / 0.5358 GB, free: 10.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.102e-05/0.3993, allocations: 54.31 kB / 0.5358 GB, free: 10.14 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.294e-05/0.3994, allocations: 103.8 kB / 0.5359 GB, free: 10.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.3994, allocations: 34.83 kB / 0.536 GB, free: 10 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.958e-05/0.3995, allocations: 83.89 kB / 0.536 GB, free: 9.914 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.875e-05/0.3995, allocations: 63.5 kB / 0.5361 GB, free: 9.859 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.3997, allocations: 57.62 kB / 0.5362 GB, free: 9.824 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3998, allocations: 321 kB / 0.5365 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/0.4002, allocations: 176.1 kB / 0.5366 GB, free: 9.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.4005, allocations: 175.5 kB / 0.5368 GB, free: 9.324 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001019/0.4016, allocations: 427.2 kB / 0.5372 GB, free: 9.113 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/0.4016, allocations: 0 / 0.5372 GB, free: 9.113 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001041/0.4026, allocations: 456.4 kB / 0.5376 GB, free: 8.883 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.4027, allocations: 8.375 kB / 0.5377 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.4027, allocations: 0 / 0.5377 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.4027, allocations: 5.562 kB / 0.5377 GB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003608/0.4031, allocations: 75.03 kB / 0.5377 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.311e-06/0.4031, allocations: 1.75 kB / 0.5377 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001953/0.4033, allocations: 22.41 kB / 0.5378 GB, free: 8.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-05/0.4033, allocations: 15.86 kB / 0.5378 GB, free: 8.84 MB / 398.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.0001194/0.4034, allocations: 121.2 kB / 0.5379 GB, free: 8.715 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.706e-05/0.4035, allocations: 7.281 kB / 0.5379 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001235/0.4047, allocations: 0.5461 MB / 0.5384 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.4047, allocations: 1.469 kB / 0.5384 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.4048, allocations: 1.188 kB / 0.5384 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4048, allocations: 3.984 kB / 0.5384 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.4068, allocations: 0.8827 MB / 0.5393 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.4069, allocations: 2.094 kB / 0.5393 GB, free: 7.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002782/0.4071, allocations: 66.05 kB / 0.5394 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.4071, allocations: 2.281 kB / 0.5394 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.289e-05/0.4072, allocations: 19.89 kB / 0.5394 GB, free: 7.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.4072, allocations: 6.375 kB / 0.5394 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4072, allocations: 2.812 kB / 0.5394 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009157/0.4081, allocations: 460.9 kB / 0.5398 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.4082, allocations: 88.81 kB / 0.5399 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.92e-05/0.4082, allocations: 7.375 kB / 0.5399 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002008/0.4084, allocations: 18.89 kB / 0.5399 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.848e-05/0.4085, allocations: 15.23 kB / 0.54 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.268e-05/0.4085, allocations: 17.33 kB / 0.54 GB, free: 7.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.94e-05/0.4086, allocations: 83.34 kB / 0.54 GB, free: 7.195 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4086, allocations: 0 / 0.54 GB, free: 7.195 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009026/0.4095, allocations: 318.3 kB / 0.5404 GB, free: 7.16 MB / 398.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.001321/0.4108, allocations: 241.1 kB / 0.5406 GB, free: 7.012 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008288/0.4116, allocations: 340.5 kB / 0.5409 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4117, allocations: 0 / 0.5409 GB, free: 6.855 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003375/0.412, allocations: 151.2 kB / 0.5411 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.4123, allocations: 16.58 kB / 0.5411 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/0.4135, allocations: 414.5 kB / 0.5415 GB, free: 6.5 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002272/0.4137, allocations: 0.6978 MB / 0.5421 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002934/0.414, allocations: 91.61 kB / 0.5422 GB, free: 5.719 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002494/0.4143, allocations: 51.39 kB / 0.5423 GB, free: 5.668 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4143, allocations: 0 / 0.5423 GB, free: 5.668 MB / 398.1 MB Notification: Performance of Templates: time 0.02135/0.4356, allocations: 17.79 MB / 0.5597 GB, free: 3.906 MB / 414.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/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_trunk_ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches