Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001219/0.001219, allocations: 188.2 kB / 7.805 MB, free: 2.453 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.348/1.348, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 92.3 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1823/0.1823, allocations: 43.49 MB / 352.8 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2199/0.4023, allocations: 64.97 MB / 417.8 MB, free: 40.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.7287, allocations: 58.84 MB / 476.6 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1616/0.8903, allocations: 111.9 MB / 0.5747 GB, free: 3.012 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.8907, allocations: 79.95 kB / 0.5748 GB, free: 2.934 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: 2297 * Number of variables: 2297 Notification: Performance of Generate backend data structure: time 0.6494/1.54, allocations: 138.8 MB / 0.7104 GB, free: 95.66 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/1.54, allocations: 8.812 kB / 0.7104 GB, free: 95.66 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03088/1.571, allocations: 6.99 MB / 0.7172 GB, free: 89.68 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02754/1.599, allocations: 9.857 MB / 0.7268 GB, free: 79.83 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004442/1.599, allocations: 215.9 kB / 0.7271 GB, free: 79.62 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004915/1.604, allocations: 399.7 kB / 0.7274 GB, free: 79.23 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0228/1.627, allocations: 10.05 MB / 0.7373 GB, free: 69.18 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03885/1.666, allocations: 14.6 MB / 0.7515 GB, free: 53.14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006878/1.667, allocations: 103.1 kB / 0.7516 GB, free: 53.04 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003674/1.67, allocations: 48 kB / 0.7517 GB, free: 53 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002676/1.673, allocations: 1.693 MB / 0.7533 GB, free: 51.3 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1036/1.777, allocations: 75.92 MB / 0.8274 GB, free: 5.227 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2226/1.999, allocations: 5.313 MB / 0.8326 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006558/2.006, allocations: 4.277 MB / 0.8368 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02757/2.034, allocations: 14.28 MB / 0.8508 GB, free: 160.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.306e-05/2.034, allocations: 62.47 kB / 0.8508 GB, free: 160.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=281): time 8.265e-06/2.034, allocations: 0 / 0.8508 GB, free: 160.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=363): time 0.117/2.151, allocations: 38.5 MB / 0.8884 GB, free: 151.3 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.17e-05/2.151, allocations: 268.4 kB / 0.8887 GB, free: 151 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01199/2.163, allocations: 4.754 MB / 0.8933 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001002/2.164, allocations: 26.61 kB / 0.8933 GB, free: 149.3 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003877/2.168, allocations: 4.325 MB / 0.8976 GB, free: 146 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002468/2.17, allocations: 1.291 MB / 0.8988 GB, free: 145 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001448/2.172, allocations: 7.25 kB / 0.8988 GB, free: 145 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.00105/2.173, allocations: 0.7023 MB / 0.8995 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007236/2.18, allocations: 3.662 MB / 0.9031 GB, free: 143.2 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01017/2.19, allocations: 9.003 MB / 0.9119 GB, free: 134.8 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/2.202, allocations: 6.003 MB / 0.9178 GB, free: 133 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003156/2.202, allocations: 54.41 kB / 0.9178 GB, free: 133 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.04245/2.245, allocations: 15.13 MB / 0.9326 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.74e-05/2.245, allocations: 8 kB / 0.9326 GB, free: 123.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005577/2.245, allocations: 188 kB / 0.9328 GB, free: 123.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01444/2.26, allocations: 3.86 MB / 0.9365 GB, free: 120.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00851/2.268, allocations: 2.07 MB / 0.9386 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03572/2.304, allocations: 19.93 MB / 0.958 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01103/2.315, allocations: 335.8 kB / 0.9583 GB, free: 101.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003727/2.319, allocations: 0.5426 MB / 0.9589 GB, free: 100.9 MB / 0.4948 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.004597/2.324, allocations: 0.5891 MB / 0.9594 GB, free: 100.3 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002138/2.326, allocations: 0.5436 MB / 0.96 GB, free: 99.79 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02801/2.354, allocations: 9.467 MB / 0.9692 GB, free: 92.45 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001464/2.354, allocations: 32.61 kB / 0.9692 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-05/2.354, allocations: 16 kB / 0.9693 GB, free: 92.41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001385/2.354, allocations: 20.73 kB / 0.9693 GB, free: 92.4 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05235/2.407, allocations: 17.94 MB / 0.9868 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.654e-05/2.407, allocations: 0 / 0.9868 GB, free: 74.41 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003085/2.41, allocations: 483.3 kB / 0.9873 GB, free: 73.94 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01354/2.423, allocations: 3.466 MB / 0.9907 GB, free: 70.46 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001011/2.424, allocations: 19.89 kB / 0.9907 GB, free: 70.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03101/2.456, allocations: 18.41 MB / 1.009 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.136e-06/2.456, allocations: 0 / 1.009 GB, free: 51.8 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03176/2.487, allocations: 14.23 MB / 1.023 GB, free: 37.51 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2885/2.776, allocations: 18.99 MB / 1.041 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004028/2.78, allocations: 1.078 MB / 1.042 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001633/2.782, allocations: 9.891 kB / 1.042 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003322/2.785, allocations: 127.2 kB / 1.042 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004685/2.785, allocations: 163.5 kB / 1.042 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003209/2.786, allocations: 96.95 kB / 1.043 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.005704/2.791, allocations: 3.218 MB / 1.046 GB, free: 148 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009767/2.801, allocations: 1.578 MB / 1.047 GB, free: 148 MB / 0.4948 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.0007903/2.802, allocations: 187.1 kB / 1.047 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01561/2.818, allocations: 9.166 MB / 1.056 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/2.818, allocations: 3.188 kB / 1.056 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005468/2.823, allocations: 3.556 MB / 1.06 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004188/2.827, allocations: 0.5741 MB / 1.06 GB, free: 147.3 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03254/2.86, allocations: 13.37 MB / 1.073 GB, free: 143.9 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008583/2.869, allocations: 5.389 MB / 1.079 GB, free: 142.3 MB / 0.4948 GB Notification: Performance of SimCode: time 1.402e-06/2.869, allocations: 2 kB / 1.079 GB, free: 142.3 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)