Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.001761/0.001761, allocations: 186.5 kB / 8.522 MB, free: 1.742 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.194/1.194, 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.0009927/0.0009927, allocations: 92.61 kB / 281.2 MB, free: 5.523 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.1655/0.1655, allocations: 44.15 MB / 376.1 MB, free: 3.254 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1873/0.3529, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.4682, allocations: 61.91 MB / 0.4942 GB, free: 1.559 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3082/0.7764, allocations: 113.7 MB / 0.6052 GB, free: 15.06 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/0.7767, allocations: 71.97 kB / 0.6053 GB, free: 14.99 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.5259/1.303, allocations: 140.3 MB / 0.7423 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.833e-05/1.303, allocations: 17.69 kB / 0.7424 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02804/1.331, allocations: 6.985 MB / 0.7492 GB, free: 104 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02191/1.353, allocations: 9.234 MB / 0.7582 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002593/1.353, allocations: 211.2 kB / 0.7584 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002517/1.355, allocations: 399.8 kB / 0.7588 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01849/1.374, allocations: 10.05 MB / 0.7686 GB, free: 99.92 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02548/1.4, allocations: 14.59 MB / 0.7828 GB, free: 90.58 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002982/1.4, allocations: 105.7 kB / 0.7829 GB, free: 90.48 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001708/1.402, allocations: 44 kB / 0.783 GB, free: 90.44 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002225/1.404, allocations: 1.698 MB / 0.7846 GB, free: 89.05 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0742/1.478, allocations: 75.82 MB / 0.8587 GB, free: 13.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005878/1.484, allocations: 5.317 MB / 0.8639 GB, free: 8.262 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004569/1.489, allocations: 4.288 MB / 0.8681 GB, free: 3.969 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02155/1.51, allocations: 14.22 MB / 0.8819 GB, free: 5.156 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.342e-05/1.51, allocations: 72.45 kB / 0.882 GB, free: 5.078 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=281): time 6.432e-06/1.51, allocations: 0 / 0.882 GB, free: 5.078 MB / 0.5105 GB Notification: Performance of matching and sorting (n=363): time 0.2436/1.754, allocations: 38.27 MB / 0.9194 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.003e-05/1.754, allocations: 272.9 kB / 0.9196 GB, free: 168 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006569/1.761, allocations: 4.711 MB / 0.9242 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007854/1.761, allocations: 25.7 kB / 0.9243 GB, free: 167.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.00201/1.763, allocations: 4.312 MB / 0.9285 GB, free: 165.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00171/1.765, allocations: 1.298 MB / 0.9298 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005024/1.766, allocations: 2.812 kB / 0.9298 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0003904/1.766, allocations: 0.7047 MB / 0.9304 GB, free: 163.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004334/1.77, allocations: 3.663 MB / 0.934 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006288/1.777, allocations: 9.003 MB / 0.9428 GB, free: 154 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009583/1.786, allocations: 5.988 MB / 0.9487 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/1.787, allocations: 55.28 kB / 0.9487 GB, free: 152.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.03362/1.82, allocations: 15.13 MB / 0.9635 GB, free: 148 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/1.82, allocations: 4.688 kB / 0.9635 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002849/1.82, allocations: 189.3 kB / 0.9637 GB, free: 148 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01468/1.835, allocations: 3.855 MB / 0.9674 GB, free: 145.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007355/1.843, allocations: 2.074 MB / 0.9695 GB, free: 143.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02956/1.872, allocations: 19.93 MB / 0.9889 GB, free: 126.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007775/1.88, allocations: 341.1 kB / 0.9892 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001636/1.882, allocations: 0.5477 MB / 0.9898 GB, free: 125.7 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 864 * Number of states: 0 () * Number of discrete variables: 66 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[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],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1114): * Single equations (assignments): 1109 * 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 {(2,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001481/1.883, allocations: 0.5773 MB / 0.9903 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001052/1.884, allocations: 0.5358 MB / 0.9909 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02107/1.905, allocations: 9.477 MB / 1 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-05/1.905, allocations: 32 kB / 1 GB, free: 117.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.465e-05/1.905, allocations: 16 kB / 1 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.74e-05/1.906, allocations: 22.3 kB / 1 GB, free: 117.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03737/1.943, allocations: 17.9 MB / 1.018 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.899e-05/1.943, allocations: 7.938 kB / 1.018 GB, free: 102.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002895/1.946, allocations: 477.1 kB / 1.018 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01326/1.959, allocations: 3.465 MB / 1.022 GB, free: 99.41 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007215/1.96, allocations: 11.98 kB / 1.022 GB, free: 99.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02688/1.987, allocations: 18.43 MB / 1.04 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.039e-06/1.987, allocations: 0 / 1.04 GB, free: 80.75 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02573/2.013, allocations: 14.21 MB / 1.053 GB, free: 66.47 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03196/2.045, allocations: 18.99 MB / 1.072 GB, free: 47.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/2.046, allocations: 0.5369 MB / 1.072 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00164/2.048, allocations: 7.984 kB / 1.072 GB, free: 46.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003361/2.051, allocations: 127.8 kB / 1.073 GB, free: 46.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004917/2.052, allocations: 162.2 kB / 1.073 GB, free: 46.55 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003193/2.052, allocations: 100.8 kB / 1.073 GB, free: 46.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.004489/2.056, allocations: 3.175 MB / 1.076 GB, free: 43.31 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008537/2.065, allocations: 1.572 MB / 1.077 GB, free: 41.75 MB / 0.5105 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 (259): * Single equations (assignments): 254 * 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%) 40,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008002/2.066, allocations: 186.7 kB / 1.078 GB, free: 41.57 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.161/2.227, allocations: 9.165 MB / 1.087 GB, free: 163 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/2.227, allocations: 2.875 kB / 1.087 GB, free: 163 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004858/2.232, allocations: 3.553 MB / 1.09 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003096/2.235, allocations: 0.5664 MB / 1.091 GB, free: 162.8 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02433/2.259, allocations: 13.33 MB / 1.104 GB, free: 160.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007495/2.267, allocations: 5.37 MB / 1.109 GB, free: 159.7 MB / 0.5105 GB Notification: Performance of SimCode: time 6.01e-07/2.267, allocations: 0 / 1.109 GB, free: 159.7 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)