Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces.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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldForces,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces",fmuType="me",version="2.0",platforms={"static"}) [: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.001073/0.001073, allocations: 178.6 kB / 8.516 MB, free: 1.777 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.202/1.202, allocations: 221.4 MB / 230.3 MB, free: 7.641 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.0009046/0.0009046, allocations: 80.73 kB / 281.2 MB, free: 5.449 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.1671/0.1671, allocations: 44.14 MB / 376.1 MB, free: 3.164 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1933/0.3605, allocations: 68.03 MB / 444.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.4595, allocations: 61.92 MB / 0.4942 GB, free: 1.438 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2865/0.746, allocations: 108.3 MB / 0.5999 GB, free: 4.246 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002401/0.7463, allocations: 79.89 kB / 0.6 GB, free: 4.168 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2429 * Number of variables: 2429 Notification: Performance of Generate backend data structure: time 0.5403/1.287, allocations: 143.7 MB / 0.7403 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/1.287, allocations: 12.25 kB / 0.7403 GB, free: 100.7 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03565/1.322, allocations: 9.105 MB / 0.7492 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.343, allocations: 8.444 MB / 0.7574 GB, free: 99.2 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002697/1.343, allocations: 226.8 kB / 0.7577 GB, free: 99.2 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002182/1.345, allocations: 425.6 kB / 0.7581 GB, free: 99.19 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01598/1.361, allocations: 9.68 MB / 0.7675 GB, free: 96.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02737/1.389, allocations: 15.02 MB / 0.7822 GB, free: 88.29 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003125/1.389, allocations: 109.1 kB / 0.7823 GB, free: 88.22 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009022/1.39, allocations: 46.28 kB / 0.7823 GB, free: 88.22 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00185/1.392, allocations: 1.601 MB / 0.7839 GB, free: 87.32 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06478/1.457, allocations: 74.45 MB / 0.8566 GB, free: 14.2 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005519/1.462, allocations: 5.471 MB / 0.862 GB, free: 8.574 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003545/1.466, allocations: 3.809 MB / 0.8657 GB, free: 4.754 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01592/1.482, allocations: 10.42 MB / 0.8758 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.343e-05/1.482, allocations: 63.19 kB / 0.8759 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=223): time 6.091e-06/1.482, allocations: 0 / 0.8759 GB, free: 10.11 MB / 0.5105 GB Notification: Performance of matching and sorting (n=259): time 0.2071/1.689, allocations: 27.09 MB / 0.9024 GB, free: 180.3 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/1.689, allocations: 291 kB / 0.9026 GB, free: 180 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007088/1.696, allocations: 4.913 MB / 0.9074 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000473/1.697, allocations: 25.7 kB / 0.9075 GB, free: 179.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00271/1.699, allocations: 4.551 MB / 0.9119 GB, free: 178.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001129/1.701, allocations: 0.9781 MB / 0.9129 GB, free: 177.8 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000335/1.701, allocations: 2.375 kB / 0.9129 GB, free: 177.8 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003715/1.701, allocations: 0.6758 MB / 0.9135 GB, free: 177.5 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003527/1.705, allocations: 2.984 MB / 0.9164 GB, free: 177.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005316/1.71, allocations: 8.32 MB / 0.9246 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005417/1.716, allocations: 4.962 MB / 0.9294 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.197e-05/1.716, allocations: 56.25 kB / 0.9295 GB, free: 170.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1139) (initialization): time 0.01652/1.732, allocations: 11.08 MB / 0.9403 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/1.732, allocations: 12.41 kB / 0.9403 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001832/1.732, allocations: 190.1 kB / 0.9405 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/1.736, allocations: 1.318 MB / 0.9418 GB, free: 169.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006845/1.742, allocations: 1.992 MB / 0.9437 GB, free: 169.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01189/1.754, allocations: 10.46 MB / 0.9539 GB, free: 163.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006986/1.761, allocations: 267.5 kB / 0.9542 GB, free: 163.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001472/1.763, allocations: 0.5354 MB / 0.9547 GB, free: 163.2 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 872 * Number of states: 0 () * Number of discrete variables: 71 (forceAndTorque.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque.torqueArrow.headAtOrigin,forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque.forceArrow.headAtOrigin,forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[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],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.arrow.arrowLine.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque1.color[3],worldTorque1.color[2],worldTorque1.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],fixed2.color[3],fixed2.color[2],fixed2.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 (1064): * Single equations (assignments): 1058 * 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 {(4,75.0%) 21,(1,100.0%) 14,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002352/1.765, allocations: 0.5907 MB / 0.9553 GB, free: 162.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001232/1.767, allocations: 0.5052 MB / 0.9558 GB, free: 162.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008598/1.775, allocations: 5.067 MB / 0.9607 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.346e-05/1.775, allocations: 23.5 kB / 0.9607 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/1.775, allocations: 11.09 kB / 0.9608 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.833e-05/1.775, allocations: 13.97 kB / 0.9608 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01893/1.794, allocations: 11.42 MB / 0.9719 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/1.794, allocations: 3.969 kB / 0.9719 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002159/1.796, allocations: 397.9 kB / 0.9723 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002725/1.799, allocations: 1 MB / 0.9733 GB, free: 156.5 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002173/1.799, allocations: 10.66 kB / 0.9733 GB, free: 156.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01083/1.81, allocations: 9.43 MB / 0.9825 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.81, allocations: 1.438 kB / 0.9825 GB, free: 150.5 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0121/1.822, allocations: 8.842 MB / 0.9911 GB, free: 144.9 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01354/1.836, allocations: 12.26 MB / 1.003 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001524/1.838, allocations: 0.5243 MB / 1.004 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008316/1.838, allocations: 4 kB / 1.004 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002101/1.841, allocations: 73.48 kB / 1.004 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003059/1.841, allocations: 124.9 kB / 1.004 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002028/1.841, allocations: 64 kB / 1.004 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.00514/1.846, allocations: 3.333 MB / 1.007 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008821/1.855, allocations: 1.356 MB / 1.008 GB, free: 129 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 195 * 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%) 11,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005923/1.856, allocations: 153.8 kB / 1.009 GB, free: 128.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01023/1.866, allocations: 7.469 MB / 1.016 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/1.866, allocations: 0 / 1.016 GB, free: 122.1 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003277/1.869, allocations: 2.63 MB / 1.018 GB, free: 119.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00335/1.873, allocations: 0.6292 MB / 1.019 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02268/1.895, allocations: 12.59 MB / 1.031 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006657/1.902, allocations: 5.565 MB / 1.037 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of SimCode: time 7.51e-07/1.902, allocations: 0 / 1.037 GB, free: 103.7 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_WorldForces.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.WorldForces.pipe 2>&1)