Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.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.Forces.LineForceWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass") translateModel(ModelicaTest.MultiBody.Forces.LineForceWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass") [: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.00119/0.001191, allocations: 179.5 kB / 8.519 MB, free: 1.855 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.201/1.201, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.0009037/0.0009036, allocations: 87.73 kB / 281.2 MB, free: 5.469 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.1812/0.1812, allocations: 44.15 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.643e-06/6.683e-06, allocations: 4.219 kB / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1066, allocations: 61.9 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3208/0.4274, allocations: 112.8 MB / 0.6042 GB, free: 15.96 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.4277, allocations: 75.94 kB / 0.6043 GB, free: 15.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.518/0.9458, allocations: 108.9 MB / 0.7107 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002006/0.946, allocations: 114.6 kB / 0.7108 GB, free: 107.9 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1941 * Number of variables: 1941 Notification: Performance of Generate backend data structure: time 0.01398/0.96, allocations: 5.783 MB / 0.7164 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.9601, allocations: 10.69 kB / 0.7164 GB, free: 105.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02425/0.9843, allocations: 6.527 MB / 0.7228 GB, free: 105.3 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01509/0.9994, allocations: 6.835 MB / 0.7295 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001498/0.9996, allocations: 176.6 kB / 0.7297 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001103/1.001, allocations: 324.6 kB / 0.73 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01044/1.011, allocations: 8.362 MB / 0.7381 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01562/1.027, allocations: 12.3 MB / 0.7501 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001666/1.027, allocations: 67.78 kB / 0.7502 GB, free: 100.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006189/1.028, allocations: 40.59 kB / 0.7502 GB, free: 100.5 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001436/1.029, allocations: 1.452 MB / 0.7517 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05861/1.088, allocations: 61.89 MB / 0.8121 GB, free: 54.99 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004361/1.092, allocations: 4.239 MB / 0.8162 GB, free: 50.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003259/1.095, allocations: 3.338 MB / 0.8195 GB, free: 47.87 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01621/1.112, allocations: 13.15 MB / 0.8323 GB, free: 36.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.222e-05/1.112, allocations: 60.5 kB / 0.8324 GB, free: 36.04 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=227): time 5.129e-06/1.112, allocations: 0 / 0.8324 GB, free: 36.04 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.0482/1.16, allocations: 23.29 MB / 0.8551 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/1.16, allocations: 258.3 kB / 0.8554 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004593/1.165, allocations: 3.904 MB / 0.8592 GB, free: 12.08 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002141/1.165, allocations: 29.27 kB / 0.8592 GB, free: 12.05 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001239/1.166, allocations: 3.652 MB / 0.8628 GB, free: 8.34 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006362/1.167, allocations: 0.9597 MB / 0.8637 GB, free: 7.367 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002597/1.167, allocations: 0 / 0.8637 GB, free: 7.367 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002752/1.167, allocations: 0.6244 MB / 0.8643 GB, free: 6.738 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002796/1.17, allocations: 2.522 MB / 0.8668 GB, free: 4.215 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005166/1.175, allocations: 6.988 MB / 0.8736 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005584/1.181, allocations: 4.177 MB / 0.8777 GB, free: 6.809 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-05/1.181, allocations: 44 kB / 0.8778 GB, free: 6.766 MB / 0.5105 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.01449/1.195, allocations: 8.916 MB / 0.8865 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/1.195, allocations: 4 kB / 0.8865 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001629/1.196, allocations: 160 kB / 0.8866 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001359/1.197, allocations: 0.5881 MB / 0.8872 GB, free: 13.09 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006003/1.203, allocations: 1.77 MB / 0.8889 GB, free: 11.32 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006109/1.209, allocations: 5.327 MB / 0.8941 GB, free: 5.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005659/1.215, allocations: 231.3 kB / 0.8943 GB, free: 5.547 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001344/1.216, allocations: 456 kB / 0.8948 GB, free: 5.102 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 726 * Number of states: 0 () * Number of discrete variables: 57 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (947): * Single equations (assignments): 942 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001148/1.217, allocations: 0.4983 MB / 0.8953 GB, free: 4.594 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008231/1.218, allocations: 442.3 kB / 0.8957 GB, free: 4.156 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006466/1.225, allocations: 3.884 MB / 0.8995 GB, free: 264 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-05/1.225, allocations: 24 kB / 0.8995 GB, free: 240 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/1.225, allocations: 8 kB / 0.8995 GB, free: 232 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-05/1.225, allocations: 19.8 kB / 0.8995 GB, free: 216 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1634/1.388, allocations: 9.141 MB / 0.9085 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/1.388, allocations: 3.75 kB / 0.9085 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002325/1.391, allocations: 439 kB / 0.9089 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009186/1.392, allocations: 344 kB / 0.9092 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001816/1.392, allocations: 6.875 kB / 0.9092 GB, free: 179.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003965/1.396, allocations: 4.636 MB / 0.9137 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/1.396, allocations: 3.281 kB / 0.9137 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007858/1.404, allocations: 7.142 MB / 0.9207 GB, free: 176.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009544/1.405, allocations: 456 kB / 0.9211 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006197/1.405, allocations: 6 kB / 0.9212 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001831/1.407, allocations: 88.98 kB / 0.9212 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/1.407, allocations: 114.4 kB / 0.9213 GB, free: 176 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/1.408, allocations: 70.02 kB / 0.9214 GB, free: 176 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003422/1.411, allocations: 2.632 MB / 0.924 GB, free: 175.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005005/1.416, allocations: 1.104 MB / 0.9251 GB, free: 175.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004185/1.416, allocations: 163.6 kB / 0.9252 GB, free: 175.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007391/1.424, allocations: 6.209 MB / 0.9313 GB, free: 175.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/1.424, allocations: 6.375 kB / 0.9313 GB, free: 175.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002384/1.426, allocations: 2.146 MB / 0.9334 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002436/1.429, allocations: 455.8 kB / 0.9338 GB, free: 175.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01798/1.447, allocations: 10.19 MB / 0.9438 GB, free: 172.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00632/1.453, allocations: 4.572 MB / 0.9482 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of SimCode: time 8.62e-07/1.453, allocations: 0 / 0.9482 GB, free: 170.9 MB / 0.5261 GB Notification: Performance of Templates: time 0.0866/1.54, allocations: 47.98 MB / 0.9951 GB, free: 154.6 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/LineForceWithMass/LineForceWithMass.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches