Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002496/0.002496, allocations: 171.6 kB / 8.148 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.728/1.728, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001292/0.001292, allocations: 93.84 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2664/0.2664, allocations: 43.5 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.366e-06/8.716e-06, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2961, allocations: 58.83 MB / 476.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1653/0.4615, allocations: 86.69 MB / 0.55 GB, free: 12.39 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.4618, allocations: 59.97 kB / 0.5501 GB, free: 12.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.02277/0.4846, allocations: 4.455 MB / 0.5544 GB, free: 7.863 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.165e-05/0.4846, allocations: 11.98 kB / 0.5544 GB, free: 7.852 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001158/0.4858, allocations: 0.5254 MB / 0.5549 GB, free: 7.277 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.4859, allocations: 8.031 kB / 0.555 GB, free: 7.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.486, allocations: 42.8 kB / 0.555 GB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004461/0.4864, allocations: 254.1 kB / 0.5552 GB, free: 6.941 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.4865, allocations: 8 kB / 0.5552 GB, free: 6.934 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.174e-05/0.4866, allocations: 23.91 kB / 0.5553 GB, free: 6.91 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004449/0.487, allocations: 125 kB / 0.5554 GB, free: 6.789 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005308/0.4876, allocations: 220.2 kB / 0.5556 GB, free: 6.547 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.926e-05/0.4876, allocations: 8 kB / 0.5556 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.17e-05/0.4877, allocations: 3.906 kB / 0.5556 GB, free: 6.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.4877, allocations: 4 kB / 0.5556 GB, free: 6.531 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002446/0.4901, allocations: 1.252 MB / 0.5568 GB, free: 5.184 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004216/0.4906, allocations: 178.9 kB / 0.557 GB, free: 4.984 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.4908, allocations: 71.42 kB / 0.5571 GB, free: 4.902 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.461e-05/0.4909, allocations: 4 kB / 0.5571 GB, free: 4.898 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.208e-05/0.4909, allocations: 42.69 kB / 0.5571 GB, free: 4.848 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 2.364e-06/0.4909, allocations: 4 kB / 0.5571 GB, free: 4.844 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.003094/0.494, allocations: 1.337 MB / 0.5584 GB, free: 3.301 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.191e-05/0.4942, allocations: 132.5 kB / 0.5586 GB, free: 3.141 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.4945, allocations: 188.3 kB / 0.5587 GB, free: 2.949 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.4e-05/0.4945, allocations: 25.7 kB / 0.5588 GB, free: 2.918 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001352/0.4947, allocations: 222.6 kB / 0.559 GB, free: 2.699 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001245/0.4948, allocations: 110.3 kB / 0.5591 GB, free: 2.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.953e-05/0.4948, allocations: 0 / 0.5591 GB, free: 2.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.495, allocations: 324.2 kB / 0.5594 GB, free: 2.266 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002285/0.4952, allocations: 64.86 kB / 0.5594 GB, free: 2.199 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/0.4956, allocations: 200.6 kB / 0.5596 GB, free: 1.945 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002958/0.4959, allocations: 91.89 kB / 0.5597 GB, free: 1.855 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.4959, allocations: 0 / 0.5597 GB, free: 1.855 MB / 394.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008036/0.4967, allocations: 281.2 kB / 0.56 GB, free: 1.574 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.4968, allocations: 7.281 kB / 0.56 GB, free: 1.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.4968, allocations: 4 kB / 0.56 GB, free: 1.566 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.185e-05/0.4968, allocations: 11.98 kB / 0.56 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008585/0.4977, allocations: 108.3 kB / 0.5601 GB, free: 1.449 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.873e-05/0.4977, allocations: 11.94 kB / 0.5601 GB, free: 1.438 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.4981, allocations: 31.89 kB / 0.5602 GB, free: 1.406 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.392e-05/0.4982, allocations: 19.98 kB / 0.5602 GB, free: 1.387 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001112/0.4983, allocations: 42.92 kB / 0.5602 GB, free: 1.34 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001823/0.4985, allocations: 31.62 kB / 0.5603 GB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001292/0.4986, allocations: 29.7 kB / 0.5603 GB, free: 1.281 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.277e-06/0.4987, allocations: 4 kB / 0.5603 GB, free: 1.277 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.848e-06/0.4987, allocations: 4 kB / 0.5603 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.4987, allocations: 0 / 0.5603 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.5007, allocations: 0.8654 MB / 0.5611 GB, free: 364 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.5007, allocations: 4 kB / 0.5611 GB, free: 360 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008594/0.5016, allocations: 91.94 kB / 0.5612 GB, free: 268 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.541e-05/0.5016, allocations: 4 kB / 0.5612 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.504e-05/0.5017, allocations: 4 kB / 0.5612 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.56e-06/0.5017, allocations: 0 / 0.5612 GB, free: 260 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.133e-06/0.5017, allocations: 4 kB / 0.5612 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001116/0.5028, allocations: 0.6788 MB / 0.5619 GB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.503, allocations: 108.7 kB / 0.562 GB, free: 15.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.827e-05/0.5031, allocations: 11.94 kB / 0.562 GB, free: 15.38 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005439/0.5036, allocations: 19.98 kB / 0.562 GB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/0.5038, allocations: 19.97 kB / 0.5621 GB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.484e-05/0.5038, allocations: 16 kB / 0.5621 GB, free: 15.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0002102/0.504, allocations: 148.4 kB / 0.5622 GB, free: 15.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006957/0.5047, allocations: 56 kB / 0.5623 GB, free: 15.12 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000189/0.5049, allocations: 99.17 kB / 0.5624 GB, free: 15.02 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0006809/0.5056, allocations: 199.7 kB / 0.5625 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.5057, allocations: 0.8125 kB / 0.5625 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002805/0.506, allocations: 99.86 kB / 0.5626 GB, free: 14.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006986/0.5067, allocations: 22.53 kB / 0.5627 GB, free: 14.71 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.5088, allocations: 0.7171 MB / 0.5634 GB, free: 13.93 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006869/0.5095, allocations: 0.8065 MB / 0.5642 GB, free: 13.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.453e-06/0.5096, allocations: 0 / 0.5642 GB, free: 13.1 MB / 410.7 MB Notification: Performance of Templates: time 0.008837/0.5184, allocations: 3.238 MB / 0.5673 GB, free: 9.863 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches