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.001292/0.001292, allocations: 113 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 212.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.6 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.2104/0.2104, allocations: 46.11 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001496/0.001496, allocations: 84.09 kB / 482 MB, free: 4.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3435, allocations: 62.44 MB / 0.5317 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestUtilities.TestRegSquare2Derivatives): time 0.001598/0.3451, allocations: 0.5328 MB / 0.5322 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000664/0.3458, allocations: 362.5 kB / 0.5325 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.683e-05/0.3458, allocations: 0 / 0.5325 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.274e-05/0.3459, allocations: 7.938 kB / 0.5325 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.033e-05/0.3459, allocations: 3.938 kB / 0.5325 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004388/0.3463, allocations: 102.2 kB / 0.5326 GB, free: 12.87 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 6.521e-05/0.3464, allocations: 28.47 kB / 0.5327 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.656e-05/0.3465, allocations: 6.234 kB / 0.5327 GB, free: 12.85 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.45e-05/0.3465, allocations: 9.812 kB / 0.5327 GB, free: 12.84 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.807e-05/0.3466, allocations: 22.2 kB / 0.5327 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.3466, allocations: 0 / 0.5327 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.3468, allocations: 128.5 kB / 0.5328 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.212e-05/0.3468, allocations: 0 / 0.5328 GB, free: 12.76 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.794e-05/0.3469, allocations: 18.61 kB / 0.5328 GB, free: 12.74 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001701/0.347, allocations: 95.55 kB / 0.5329 GB, free: 12.68 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.347, allocations: 3.938 kB / 0.5329 GB, free: 12.68 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3471, allocations: 0 / 0.5329 GB, free: 12.68 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.3471, allocations: 0 / 0.5329 GB, free: 12.68 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.0005388/0.3476, allocations: 362.3 kB / 0.5333 GB, free: 12.3 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.3476, allocations: 9.625 kB / 0.5333 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.458e-05/0.3477, allocations: 10.22 kB / 0.5333 GB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.3478, allocations: 173 kB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.127e-05/0.3478, allocations: 1.75 kB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.013e-05/0.3479, allocations: 4.5 kB / 0.5335 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00014/0.348, allocations: 54.61 kB / 0.5335 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.348, allocations: 192 / 0.5335 GB, free: 12.04 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.594e-05/0.3481, allocations: 9.297 kB / 0.5335 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.3481, allocations: 1.375 kB / 0.5335 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.998e-05/0.3481, allocations: 31.05 kB / 0.5336 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002165/0.3484, allocations: 180.5 kB / 0.5337 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.3486, allocations: 52.03 kB / 0.5338 GB, free: 11.77 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.276e-05/0.3487, allocations: 24.62 kB / 0.5338 GB, free: 11.75 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002825/0.349, allocations: 109.7 kB / 0.5339 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.184e-05/0.349, allocations: 35.78 kB / 0.5339 GB, free: 11.6 MB / 398.1 MB Notification: Performance of pre-optimization done (n=9): time 1.312e-06/0.3491, allocations: 9.094 kB / 0.5339 GB, free: 11.59 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.04243/0.3915, allocations: 2.571 MB / 0.5365 GB, free: 10.22 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/0.3916, allocations: 54.22 kB / 0.5365 GB, free: 10.16 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.701e-05/0.3917, allocations: 103.9 kB / 0.5366 GB, free: 10.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.3917, allocations: 26.89 kB / 0.5366 GB, free: 10.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.3919, allocations: 89.05 kB / 0.5367 GB, free: 9.934 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.082e-05/0.392, allocations: 57.86 kB / 0.5368 GB, free: 9.883 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.3921, allocations: 54.28 kB / 0.5368 GB, free: 9.852 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3923, allocations: 328.8 kB / 0.5371 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.3927, allocations: 175.6 kB / 0.5373 GB, free: 9.434 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004171/0.3931, allocations: 172.3 kB / 0.5375 GB, free: 9.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.3943, allocations: 422.5 kB / 0.5379 GB, free: 9.141 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3943, allocations: 0 / 0.5379 GB, free: 9.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.001144/0.3954, allocations: 466 kB / 0.5383 GB, free: 8.902 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.3955, allocations: 6.719 kB / 0.5383 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.3955, allocations: 0 / 0.5383 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.3955, allocations: 5.25 kB / 0.5383 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004124/0.3959, allocations: 68.09 kB / 0.5384 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.3959, allocations: 0 / 0.5384 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.3961, allocations: 22.62 kB / 0.5384 GB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.3962, allocations: 13.28 kB / 0.5384 GB, free: 8.871 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.0001331/0.3963, allocations: 132.6 kB / 0.5386 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/0.3964, allocations: 8.312 kB / 0.5386 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.3977, allocations: 0.5335 MB / 0.5391 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3977, allocations: 1.062 kB / 0.5391 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.3977, allocations: 5.531 kB / 0.5391 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3978, allocations: 3.984 kB / 0.5391 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002436/0.4002, allocations: 0.8879 MB / 0.54 GB, free: 7.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.4002, allocations: 5.312 kB / 0.54 GB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002973/0.4005, allocations: 61.77 kB / 0.54 GB, free: 7.742 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.4005, allocations: 7.406 kB / 0.54 GB, free: 7.738 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.4006, allocations: 19.02 kB / 0.54 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.4006, allocations: 2.125 kB / 0.5401 GB, free: 7.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.4006, allocations: 6.125 kB / 0.5401 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.4017, allocations: 461.9 kB / 0.5405 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.698e-05/0.4018, allocations: 85.17 kB / 0.5406 GB, free: 7.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.411e-05/0.4019, allocations: 7.891 kB / 0.5406 GB, free: 7.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.4021, allocations: 18.39 kB / 0.5406 GB, free: 7.309 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.4021, allocations: 14.8 kB / 0.5406 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.4022, allocations: 21.17 kB / 0.5406 GB, free: 7.293 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.222e-05/0.4022, allocations: 87.75 kB / 0.5407 GB, free: 7.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4022, allocations: 0 / 0.5407 GB, free: 7.211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001026/0.4033, allocations: 316.8 kB / 0.541 GB, free: 7.176 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.001527/0.4048, allocations: 238 kB / 0.5412 GB, free: 7.031 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008916/0.4057, allocations: 345 kB / 0.5416 GB, free: 6.871 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.4057, allocations: 0 / 0.5416 GB, free: 6.871 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.4061, allocations: 146.5 kB / 0.5417 GB, free: 6.812 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.4064, allocations: 16.61 kB / 0.5417 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001346/0.4077, allocations: 447.4 kB / 0.5422 GB, free: 6.484 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.408, allocations: 0.6948 MB / 0.5428 GB, free: 5.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002009/0.4083, allocations: 48.47 kB / 0.5429 GB, free: 5.762 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4083, allocations: 0 / 0.5429 GB, free: 5.762 MB / 398.1 MB Notification: Performance of Templates: time 0.01179/0.4201, allocations: 6.549 MB / 0.5493 GB, free: 15.27 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/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