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: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass",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.001495/0.001495, allocations: 183.6 kB / 8.522 MB, free: 1.738 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.221/1.221, allocations: 221.4 MB / 230.3 MB, free: 7.766 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.0009595/0.0009591, allocations: 88.67 kB / 281.2 MB, free: 5.512 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.1622/0.1622, allocations: 44.14 MB / 376.1 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1844/0.3467, allocations: 68.04 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.4423, allocations: 61.91 MB / 0.4942 GB, free: 1.539 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2892/0.7315, allocations: 112.8 MB / 0.6043 GB, free: 15.92 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002328/0.7318, allocations: 79.95 kB / 0.6044 GB, free: 15.84 MB / 426.7 MB 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.4909/1.223, allocations: 114.8 MB / 0.7165 GB, free: 88.42 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/1.223, allocations: 14.75 kB / 0.7165 GB, free: 88.41 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02606/1.249, allocations: 6.527 MB / 0.7229 GB, free: 88.03 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0178/1.267, allocations: 6.821 MB / 0.7296 GB, free: 87.25 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/1.267, allocations: 175.6 kB / 0.7297 GB, free: 87.25 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002505/1.27, allocations: 331.7 kB / 0.7301 GB, free: 87.24 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01409/1.284, allocations: 8.365 MB / 0.7382 GB, free: 87.21 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/1.306, allocations: 12.29 MB / 0.7502 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003754/1.307, allocations: 79.05 kB / 0.7503 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001991/1.309, allocations: 38.81 kB / 0.7503 GB, free: 84.04 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00193/1.311, allocations: 1.444 MB / 0.7518 GB, free: 84.01 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06723/1.378, allocations: 61.9 MB / 0.8122 GB, free: 42.63 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004957/1.383, allocations: 4.239 MB / 0.8163 GB, free: 38.59 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003774/1.387, allocations: 3.338 MB / 0.8196 GB, free: 35.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01848/1.405, allocations: 13.15 MB / 0.8324 GB, free: 23.75 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/1.405, allocations: 60.5 kB / 0.8325 GB, free: 23.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=227): time 5.741e-06/1.405, allocations: 0 / 0.8325 GB, free: 23.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=265): time 0.05071/1.456, allocations: 23.28 MB / 0.8552 GB, free: 3.152 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/1.456, allocations: 265.3 kB / 0.8555 GB, free: 2.836 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004797/1.461, allocations: 3.903 MB / 0.8593 GB, free: 14.93 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004043/1.461, allocations: 25.7 kB / 0.8593 GB, free: 14.9 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002144/1.464, allocations: 3.644 MB / 0.8629 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001095/1.465, allocations: 0.967 MB / 0.8638 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002853/1.465, allocations: 0 / 0.8638 GB, free: 10.22 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003979/1.465, allocations: 0.6244 MB / 0.8644 GB, free: 9.59 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003429/1.469, allocations: 2.522 MB / 0.8669 GB, free: 7.066 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005906/1.475, allocations: 6.992 MB / 0.8737 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005668/1.48, allocations: 4.178 MB / 0.8778 GB, free: 9.66 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.658e-05/1.481, allocations: 44 kB / 0.8778 GB, free: 9.617 MB / 0.5261 GB Notification: Performance of matching and sorting (n=997) (initialization): time 0.01469/1.495, allocations: 8.915 MB / 0.8866 GB, free: 0.6992 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/1.495, allocations: 4 kB / 0.8866 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000132/1.495, allocations: 160 kB / 0.8867 GB, free: 0.5391 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/1.497, allocations: 0.5926 MB / 0.8873 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006196/1.503, allocations: 1.77 MB / 0.889 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005956/1.509, allocations: 5.32 MB / 0.8942 GB, free: 8.629 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005595/1.515, allocations: 231.5 kB / 0.8944 GB, free: 8.402 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001156/1.516, allocations: 463.5 kB / 0.8949 GB, free: 7.953 MB / 0.5417 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.001064/1.517, allocations: 0.5017 MB / 0.8954 GB, free: 7.445 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008219/1.518, allocations: 442.3 kB / 0.8958 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006441/1.524, allocations: 3.881 MB / 0.8996 GB, free: 3.09 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-05/1.524, allocations: 24 kB / 0.8996 GB, free: 3.066 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.247e-05/1.524, allocations: 8 kB / 0.8996 GB, free: 3.059 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.428e-05/1.524, allocations: 15.86 kB / 0.8996 GB, free: 3.043 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1675/1.692, allocations: 9.142 MB / 0.9085 GB, free: 193.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.238e-05/1.692, allocations: 0 / 0.9085 GB, free: 193.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002394/1.694, allocations: 443.8 kB / 0.909 GB, free: 193.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009562/1.695, allocations: 340.4 kB / 0.9093 GB, free: 193.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001856/1.695, allocations: 8.641 kB / 0.9093 GB, free: 193.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004004/1.699, allocations: 4.639 MB / 0.9138 GB, free: 191.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.699, allocations: 2.688 kB / 0.9138 GB, free: 191.4 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008189/1.707, allocations: 7.143 MB / 0.9208 GB, free: 190.8 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01082/1.718, allocations: 10.17 MB / 0.9307 GB, free: 189.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001059/1.719, allocations: 449.8 kB / 0.9312 GB, free: 189.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001049/1.721, allocations: 2.031 kB / 0.9312 GB, free: 189.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002344/1.723, allocations: 92.19 kB / 0.9313 GB, free: 189.7 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002909/1.723, allocations: 118.7 kB / 0.9314 GB, free: 189.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002063/1.723, allocations: 70.08 kB / 0.9314 GB, free: 189.7 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.004784/1.728, allocations: 2.634 MB / 0.934 GB, free: 189.5 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00725/1.735, allocations: 1.107 MB / 0.9351 GB, free: 189.5 MB / 0.5417 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.0006379/1.736, allocations: 165.9 kB / 0.9353 GB, free: 189.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009416/1.746, allocations: 6.209 MB / 0.9413 GB, free: 188.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.746, allocations: 3.156 kB / 0.9413 GB, free: 188.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002761/1.748, allocations: 2.143 MB / 0.9434 GB, free: 187.5 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00295/1.751, allocations: 461.8 kB / 0.9439 GB, free: 187.3 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02102/1.772, allocations: 10.19 MB / 0.9538 GB, free: 183.9 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007407/1.78, allocations: 4.569 MB / 0.9583 GB, free: 182.5 MB / 0.5417 GB Notification: Performance of SimCode: time 9.62e-07/1.78, allocations: 0 / 0.9583 GB, free: 182.5 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_LineForceWithMass.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.LineForceWithMass.pipe 2>&1)