Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.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.WorldForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2") translateModel(ModelicaTest.MultiBody.Forces.WorldForces2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2") [: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.001028/0.001028, allocations: 178.8 kB / 8.52 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.197/1.197, allocations: 221.4 MB / 230.3 MB, free: 7.637 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.0009754/0.0009755, allocations: 85.84 kB / 281.2 MB, free: 5.434 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.1859/0.1859, allocations: 44.15 MB / 376.1 MB, free: 3.203 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.034e-06/7.054e-06, allocations: 0 / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1191, allocations: 61.91 MB / 0.4941 GB, free: 1.613 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3172/0.4364, allocations: 106.3 MB / 0.5979 GB, free: 6.48 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.4367, allocations: 79.95 kB / 0.598 GB, free: 6.402 MB / 410.7 MB Notification: Performance of FrontEnd: time 0.4944/0.931, allocations: 128 MB / 0.723 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003524/0.9314, allocations: 134.1 kB / 0.7231 GB, free: 102.7 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: 2214 * Number of variables: 2214 Notification: Performance of Generate backend data structure: time 0.01887/0.9503, allocations: 6.286 MB / 0.7293 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.9504, allocations: 11.28 kB / 0.7293 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03482/0.9852, allocations: 9.015 MB / 0.7381 GB, free: 99.75 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02026/1.006, allocations: 8.182 MB / 0.7461 GB, free: 98.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003797/1.006, allocations: 207.2 kB / 0.7463 GB, free: 98.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003227/1.009, allocations: 396.7 kB / 0.7466 GB, free: 98.78 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01859/1.028, allocations: 8.701 MB / 0.7551 GB, free: 98.69 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02585/1.054, allocations: 13.56 MB / 0.7684 GB, free: 91.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003492/1.054, allocations: 100.8 kB / 0.7685 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/1.055, allocations: 42.03 kB / 0.7685 GB, free: 91.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001753/1.057, allocations: 1.446 MB / 0.7699 GB, free: 91.19 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06881/1.126, allocations: 66.51 MB / 0.8349 GB, free: 35.29 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005171/1.131, allocations: 4.473 MB / 0.8393 GB, free: 31.08 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00337/1.134, allocations: 2.978 MB / 0.8422 GB, free: 28.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01342/1.148, allocations: 8.608 MB / 0.8506 GB, free: 19.77 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/1.148, allocations: 59.06 kB / 0.8506 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=184): time 4.789e-06/1.148, allocations: 0 / 0.8506 GB, free: 19.7 MB / 0.4948 GB Notification: Performance of matching and sorting (n=205): time 0.03641/1.184, allocations: 21.07 MB / 0.8712 GB, free: 14.46 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001086/1.184, allocations: 256.8 kB / 0.8714 GB, free: 14.15 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007597/1.192, allocations: 4.702 MB / 0.876 GB, free: 9.477 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004609/1.193, allocations: 25.7 kB / 0.8761 GB, free: 9.445 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00301/1.196, allocations: 4.256 MB / 0.8802 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001167/1.197, allocations: 0.7907 MB / 0.881 GB, free: 4.328 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004217/1.197, allocations: 4 kB / 0.881 GB, free: 4.324 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0004977/1.198, allocations: 0.6408 MB / 0.8816 GB, free: 3.676 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0035/1.201, allocations: 2.358 MB / 0.8839 GB, free: 1.309 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006894/1.208, allocations: 7.387 MB / 0.8911 GB, free: 7.371 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006803/1.215, allocations: 4.193 MB / 0.8952 GB, free: 3.176 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001196/1.215, allocations: 55.91 kB / 0.8953 GB, free: 3.121 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1036) (initialization): time 0.1958/1.411, allocations: 9.066 MB / 0.9041 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/1.411, allocations: 8.594 kB / 0.9041 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/1.411, allocations: 187.5 kB / 0.9043 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001679/1.413, allocations: 0.7934 MB / 0.9051 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005425/1.418, allocations: 1.788 MB / 0.9068 GB, free: 170.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007497/1.426, allocations: 7.823 MB / 0.9145 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007342/1.433, allocations: 244.9 kB / 0.9147 GB, free: 166.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002005/1.435, allocations: 0.4893 MB / 0.9152 GB, free: 166.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 63 (worldForce2.arrow.arrowLine.twoHeadedArrow,worldForce2.arrow.headAtOrigin,worldForce2.color[3],worldForce2.color[2],worldForce2.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],worldForce1.arrow.arrowLine.twoHeadedArrow,worldForce1.arrow.headAtOrigin,worldForce1.color[3],worldForce1.color[2],worldForce1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldForce.arrow.arrowLine.twoHeadedArrow,worldForce.arrow.headAtOrigin,worldForce.color[3],worldForce.color[2],worldForce.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.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 (973): * Single equations (assignments): 967 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001191/1.436, allocations: 0.5499 MB / 0.9157 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009922/1.437, allocations: 483.1 kB / 0.9162 GB, free: 166.8 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005147/1.442, allocations: 3.259 MB / 0.9194 GB, free: 166.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.766e-05/1.443, allocations: 20.53 kB / 0.9194 GB, free: 166.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.326e-05/1.443, allocations: 9.031 kB / 0.9194 GB, free: 166.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.741e-05/1.443, allocations: 11.86 kB / 0.9194 GB, free: 166.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.457, allocations: 8.2 MB / 0.9274 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.948e-06/1.457, allocations: 4.938 kB / 0.9274 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/1.458, allocations: 277.3 kB / 0.9277 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00135/1.46, allocations: 0.4987 MB / 0.9282 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/1.46, allocations: 12.17 kB / 0.9282 GB, free: 166.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006274/1.466, allocations: 6.911 MB / 0.9349 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/1.466, allocations: 5.469 kB / 0.9349 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007956/1.474, allocations: 6.081 MB / 0.9409 GB, free: 161.7 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001569/1.476, allocations: 0.4997 MB / 0.9414 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006511/1.476, allocations: 0 / 0.9414 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/1.478, allocations: 59.48 kB / 0.9414 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002414/1.478, allocations: 91.69 kB / 0.9415 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/1.478, allocations: 52.88 kB / 0.9416 GB, free: 161.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.005241/1.484, allocations: 3.198 MB / 0.9447 GB, free: 161.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007876/1.492, allocations: 1.19 MB / 0.9459 GB, free: 161.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 151 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 10,(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.0005287/1.492, allocations: 145.2 kB / 0.946 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.008902/1.501, allocations: 5.889 MB / 0.9517 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.488e-06/1.501, allocations: 3.656 kB / 0.9517 GB, free: 159.2 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002175/1.503, allocations: 1.82 MB / 0.9535 GB, free: 158.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003304/1.507, allocations: 0.5908 MB / 0.9541 GB, free: 158.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/1.528, allocations: 10.9 MB / 0.9647 GB, free: 154.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008666/1.537, allocations: 5.134 MB / 0.9698 GB, free: 152.8 MB / 0.5261 GB Notification: Performance of SimCode: time 1.242e-06/1.537, allocations: 0 / 0.9698 GB, free: 152.8 MB / 0.5261 GB Notification: Performance of Templates: time 0.09504/1.632, allocations: 47.75 MB / 1.016 GB, free: 126.8 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/WorldForces2/WorldForces2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches