Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.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.MultiBody.InitializationConversion.Rotor1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rotor1D1.phi|rotor1D1.w|rotor1D10.phi|rotor1D10.w|rotor1D2.phi|rotor1D2.w|rotor1D3.phi|rotor1D3.w|rotor1D4.phi|rotor1D4.w|rotor1D5.phi|rotor1D5.w|rotor1D6.phi|rotor1D6.w|rotor1D7.phi|rotor1D7.w|rotor1D8.phi|rotor1D8.w|rotor1D9.phi|rotor1D9.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D") translateModel(ModelicaTest.MultiBody.InitializationConversion.Rotor1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rotor1D1.phi|rotor1D1.w|rotor1D10.phi|rotor1D10.w|rotor1D2.phi|rotor1D2.w|rotor1D3.phi|rotor1D3.w|rotor1D4.phi|rotor1D4.w|rotor1D5.phi|rotor1D5.w|rotor1D6.phi|rotor1D6.w|rotor1D7.phi|rotor1D7.w|rotor1D8.phi|rotor1D8.w|rotor1D9.phi|rotor1D9.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D") [: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.001617/0.001617, allocations: 179.6 kB / 8.521 MB, free: 1.84 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.271/1.271, allocations: 221.4 MB / 230.3 MB, free: 7.621 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.0009053/0.0009053, allocations: 90.05 kB / 281.2 MB, free: 5.438 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.1551/0.1551, allocations: 44.15 MB / 376.1 MB, free: 3.207 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 5.581e-06/5.611e-06, allocations: 224 / 444 MB, free: 15.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1157, allocations: 61.9 MB / 0.4941 GB, free: 1.609 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3074/0.4232, allocations: 95.54 MB / 0.5874 GB, free: 1.227 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.4234, allocations: 72.72 kB / 0.5875 GB, free: 1.156 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.2191/0.6425, allocations: 89.61 MB / 0.675 GB, free: 6.867 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002174/0.6427, allocations: 96 kB / 0.6751 GB, free: 6.773 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1705 * Number of variables: 1705 Notification: Performance of Generate backend data structure: time 0.06078/0.7035, allocations: 9.145 MB / 0.684 GB, free: 13.55 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.7036, allocations: 15.97 kB / 0.684 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008619/0.7122, allocations: 1.756 MB / 0.6857 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00755/0.7198, allocations: 3.426 MB / 0.6891 GB, free: 8.289 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.72, allocations: 144 kB / 0.6892 GB, free: 8.148 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001832/0.7219, allocations: 283.8 kB / 0.6895 GB, free: 7.871 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.2312/0.9531, allocations: 9.977 MB / 0.6992 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/0.975, allocations: 13.47 MB / 0.7124 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001859/0.9752, allocations: 61.77 kB / 0.7124 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001083/0.9763, allocations: 26.66 kB / 0.7125 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002063/0.9784, allocations: 1.15 MB / 0.7136 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06636/1.045, allocations: 53.92 MB / 0.7662 GB, free: 72.92 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008204/1.053, allocations: 6.876 MB / 0.7729 GB, free: 72.01 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003335/1.056, allocations: 2.914 MB / 0.7758 GB, free: 71.02 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008004/1.064, allocations: 6.451 MB / 0.7821 GB, free: 66.5 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/1.065, allocations: 54.06 kB / 0.7821 GB, free: 66.45 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=176): time 5.19e-06/1.065, allocations: 2.219 kB / 0.7821 GB, free: 66.45 MB / 0.4948 GB Notification: Performance of matching and sorting (n=176): time 0.003864/1.068, allocations: 2.674 MB / 0.7848 GB, free: 65.53 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/1.068, allocations: 143.4 kB / 0.7849 GB, free: 65.38 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005379/1.074, allocations: 3.809 MB / 0.7886 GB, free: 63.96 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001925/1.074, allocations: 27.92 kB / 0.7886 GB, free: 63.93 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001472/1.076, allocations: 3.342 MB / 0.7919 GB, free: 61.59 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005568/1.076, allocations: 0.707 MB / 0.7926 GB, free: 61.09 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002252/1.076, allocations: 0 / 0.7926 GB, free: 61.09 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000291/1.077, allocations: 0.5966 MB / 0.7932 GB, free: 60.66 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002849/1.079, allocations: 2.149 MB / 0.7953 GB, free: 59.93 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004469/1.084, allocations: 6.52 MB / 0.8016 GB, free: 53.27 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005477/1.089, allocations: 3.748 MB / 0.8053 GB, free: 52.01 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001847/1.09, allocations: 45 kB / 0.8053 GB, free: 52.01 MB / 0.4948 GB Notification: Performance of matching and sorting (n=897) (initialization): time 0.01503/1.105, allocations: 7.699 MB / 0.8129 GB, free: 49.34 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/1.105, allocations: 4 kB / 0.8129 GB, free: 49.33 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/1.105, allocations: 160 kB / 0.813 GB, free: 49.18 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/1.105, allocations: 232.1 kB / 0.8132 GB, free: 48.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005164/1.11, allocations: 1.65 MB / 0.8149 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001665/1.11, allocations: 311.1 kB / 0.8151 GB, free: 47.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005254/1.116, allocations: 0.7541 MB / 0.8159 GB, free: 46.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005112/1.116, allocations: 458.2 kB / 0.8163 GB, free: 46.08 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 719 * Number of states: 0 () * Number of discrete variables: 42 (rotor1D10.cylinderColor[3],rotor1D10.cylinderColor[2],rotor1D10.cylinderColor[1],rotor1D9.cylinderColor[3],rotor1D9.cylinderColor[2],rotor1D9.cylinderColor[1],rotor1D8.cylinderColor[3],rotor1D8.cylinderColor[2],rotor1D8.cylinderColor[1],rotor1D7.cylinderColor[3],rotor1D7.cylinderColor[2],rotor1D7.cylinderColor[1],rotor1D6.cylinderColor[3],rotor1D6.cylinderColor[2],rotor1D6.cylinderColor[1],rotor1D5.cylinderColor[3],rotor1D5.cylinderColor[2],rotor1D5.cylinderColor[1],rotor1D4.cylinderColor[3],rotor1D4.cylinderColor[2],rotor1D4.cylinderColor[1],rotor1D3.cylinderColor[3],rotor1D3.cylinderColor[2],rotor1D3.cylinderColor[1],rotor1D2.cylinderColor[3],rotor1D2.cylinderColor[2],rotor1D2.cylinderColor[1],rotor1D1.cylinderColor[3],rotor1D1.cylinderColor[2],rotor1D1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (873): * Single equations (assignments): 870 * Array equations: 3 * 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.0006409/1.117, allocations: 490 kB / 0.8168 GB, free: 45.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004228/1.117, allocations: 371.1 kB / 0.8171 GB, free: 45.22 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/1.12, allocations: 2.483 MB / 0.8196 GB, free: 43.18 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.444e-05/1.12, allocations: 16 kB / 0.8196 GB, free: 43.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.627e-06/1.12, allocations: 0 / 0.8196 GB, free: 43.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/1.121, allocations: 10.98 kB / 0.8196 GB, free: 43.16 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004225/1.125, allocations: 3.222 MB / 0.8227 GB, free: 40.68 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.283e-06/1.125, allocations: 7.75 kB / 0.8227 GB, free: 40.67 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/1.127, allocations: 336.1 kB / 0.8231 GB, free: 40.39 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.198e-05/1.127, allocations: 4 kB / 0.8231 GB, free: 40.38 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001196/1.127, allocations: 15.23 kB / 0.8231 GB, free: 40.37 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/1.127, allocations: 8 kB / 0.8231 GB, free: 40.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.127, allocations: 0 / 0.8231 GB, free: 40.36 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00433/1.131, allocations: 4.878 MB / 0.8279 GB, free: 35.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005885/1.132, allocations: 462.8 kB / 0.8283 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004779/1.132, allocations: 4.516 kB / 0.8283 GB, free: 35.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/1.133, allocations: 23.94 kB / 0.8283 GB, free: 35.47 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/1.134, allocations: 84.05 kB / 0.8284 GB, free: 35.42 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001331/1.134, allocations: 54.72 kB / 0.8285 GB, free: 35.37 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.003542/1.137, allocations: 2.564 MB / 0.831 GB, free: 33.12 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.006155/1.144, allocations: 1.234 MB / 0.8322 GB, free: 31.88 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 20 (rotor1D1.phi,rotor1D1.w,rotor1D2.phi,rotor1D2.w,rotor1D3.phi,rotor1D3.w,rotor1D4.phi,rotor1D4.w,rotor1D5.phi,rotor1D5.w,rotor1D6.phi,rotor1D6.w,rotor1D7.phi,rotor1D7.w,rotor1D8.phi,rotor1D8.w,rotor1D9.phi,rotor1D9.w,rotor1D10.phi,rotor1D10.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (172): * Single equations (assignments): 169 * Array equations: 3 * 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.0005683/1.144, allocations: 149.4 kB / 0.8323 GB, free: 31.74 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007314/1.151, allocations: 4.843 MB / 0.837 GB, free: 27.43 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.762e-06/1.151, allocations: 4 kB / 0.837 GB, free: 27.42 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001628/1.153, allocations: 1.274 MB / 0.8383 GB, free: 26.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/1.155, allocations: 377.2 kB / 0.8386 GB, free: 25.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/1.172, allocations: 8.697 MB / 0.8471 GB, free: 18.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005314/1.177, allocations: 4.026 MB / 0.8511 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of SimCode: time 9.32e-07/1.177, allocations: 3.938 kB / 0.8511 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of Templates: time 0.07258/1.25, allocations: 37.52 MB / 0.8877 GB, free: 10.07 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/InitializationConversion/Rotor1D/Rotor1D.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.InitializationConversion.Rotor1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches