Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001018/0.001019, allocations: 182.4 kB / 8.516 MB, free: 1.852 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.4 MB / 230.3 MB, free: 7.656 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 85.61 kB / 281.2 MB, free: 5.484 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1883/0.1883, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.012e-06/6.032e-06, allocations: 0 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1148/0.1149, allocations: 61.91 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3208/0.4357, allocations: 87.96 MB / 0.58 GB, free: 8.777 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.436, allocations: 63.94 kB / 0.58 GB, free: 8.746 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01428/0.4503, allocations: 4.607 MB / 0.5845 GB, free: 4.141 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.039e-05/0.4504, allocations: 15.98 kB / 0.5845 GB, free: 4.125 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.0006681/0.451, allocations: 0.5176 MB / 0.5851 GB, free: 3.562 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.4511, allocations: 15.97 kB / 0.5851 GB, free: 3.547 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.4512, allocations: 35.61 kB / 0.5851 GB, free: 3.512 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.4514, allocations: 254.4 kB / 0.5853 GB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.4515, allocations: 8 kB / 0.5854 GB, free: 3.215 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.428e-05/0.4515, allocations: 19.91 kB / 0.5854 GB, free: 3.195 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002533/0.4518, allocations: 125 kB / 0.5855 GB, free: 3.074 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003183/0.4521, allocations: 220.2 kB / 0.5857 GB, free: 2.836 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.4521, allocations: 4 kB / 0.5857 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.4522, allocations: 0 / 0.5857 GB, free: 2.832 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.4522, allocations: 7.906 kB / 0.5857 GB, free: 2.824 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.4536, allocations: 1.252 MB / 0.5869 GB, free: 1.477 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.4539, allocations: 175.2 kB / 0.5871 GB, free: 1.281 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.454, allocations: 67.44 kB / 0.5872 GB, free: 1.203 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.454, allocations: 11.91 kB / 0.5872 GB, free: 1.191 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.178e-05/0.4541, allocations: 38.56 kB / 0.5872 GB, free: 1.145 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 2.725e-06/0.4541, allocations: 0 / 0.5872 GB, free: 1.145 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.00179/0.4559, allocations: 1.336 MB / 0.5885 GB, free: 15.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.687e-05/0.4559, allocations: 136.5 kB / 0.5886 GB, free: 15.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.4561, allocations: 180.3 kB / 0.5888 GB, free: 15.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.55e-05/0.4561, allocations: 25.7 kB / 0.5888 GB, free: 15.22 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.479e-05/0.4562, allocations: 164.2 kB / 0.589 GB, free: 15.05 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.552e-05/0.4563, allocations: 114.3 kB / 0.5891 GB, free: 14.94 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.283e-05/0.4563, allocations: 0 / 0.5891 GB, free: 14.94 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.4564, allocations: 338.8 kB / 0.5894 GB, free: 14.6 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001187/0.4566, allocations: 60.88 kB / 0.5895 GB, free: 14.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001981/0.4568, allocations: 204.7 kB / 0.5897 GB, free: 14.28 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001551/0.4569, allocations: 96.31 kB / 0.5898 GB, free: 14.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4569, allocations: 0 / 0.5898 GB, free: 14.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0004501/0.4574, allocations: 297.2 kB / 0.5901 GB, free: 13.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.4574, allocations: 4 kB / 0.5901 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.4574, allocations: 4 kB / 0.5901 GB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.4574, allocations: 11.98 kB / 0.5901 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004287/0.4579, allocations: 112.3 kB / 0.5902 GB, free: 13.76 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.4579, allocations: 7.938 kB / 0.5902 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002465/0.4582, allocations: 31.97 kB / 0.5902 GB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.4582, allocations: 20.12 kB / 0.5902 GB, free: 13.7 MB / 410.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 8.776e-05/0.4583, allocations: 112.8 kB / 0.5904 GB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.4584, allocations: 31.72 kB / 0.5904 GB, free: 13.55 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.461e-05/0.4585, allocations: 29.7 kB / 0.5904 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.911e-06/0.4585, allocations: 4 kB / 0.5904 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.4585, allocations: 7.938 kB / 0.5904 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.4585, allocations: 7.906 kB / 0.5904 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001093/0.4596, allocations: 0.8573 MB / 0.5913 GB, free: 12.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.4596, allocations: 7.938 kB / 0.5913 GB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004128/0.46, allocations: 88.23 kB / 0.5914 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.4601, allocations: 4 kB / 0.5914 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.4601, allocations: 7.984 kB / 0.5914 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.335e-06/0.4601, allocations: 3.938 kB / 0.5914 GB, free: 12.49 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4601, allocations: 4 kB / 0.5914 GB, free: 12.48 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000637/0.4607, allocations: 0.6826 MB / 0.592 GB, free: 11.74 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.265e-05/0.4608, allocations: 104.7 kB / 0.5921 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.4609, allocations: 0 / 0.5921 GB, free: 11.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.4612, allocations: 19.98 kB / 0.5922 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.343e-05/0.4613, allocations: 31.95 kB / 0.5922 GB, free: 11.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.4613, allocations: 8 kB / 0.5922 GB, free: 11.56 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001085/0.4614, allocations: 144.5 kB / 0.5923 GB, free: 11.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0004618/0.4619, allocations: 56 kB / 0.5924 GB, free: 11.37 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.0001527/0.462, allocations: 99.44 kB / 0.5925 GB, free: 11.26 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003309/0.4624, allocations: 200.6 kB / 0.5927 GB, free: 11.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4624, allocations: 192 / 0.5927 GB, free: 11.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.4625, allocations: 91.88 kB / 0.5928 GB, free: 10.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004329/0.463, allocations: 36.3 kB / 0.5928 GB, free: 10.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.4641, allocations: 0.6791 MB / 0.5935 GB, free: 10.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004093/0.4646, allocations: 0.8023 MB / 0.5942 GB, free: 9.383 MB / 410.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4646, allocations: 0 / 0.5942 GB, free: 9.383 MB / 410.7 MB Notification: Performance of Templates: time 0.005431/0.47, allocations: 2.406 MB / 0.5966 GB, free: 7 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches