Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001967/0.001967, allocations: 195.4 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.2/1.2, allocations: 225.5 MB / 234.4 MB, free: 14.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009773/0.0009772, allocations: 100.9 kB / 286.4 MB, free: 12.64 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2721/0.2721, allocations: 45.14 MB / 383.3 MB, free: 40.9 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1072/0.3793, allocations: 69.36 MB / 452.7 MB, free: 5.387 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.6346, allocations: 63.24 MB / 0.5039 GB, free: 35.52 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1173/0.7519, allocations: 114.6 MB / 0.6158 GB, free: 11.66 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002155/0.7522, allocations: 71.97 kB / 0.6159 GB, free: 11.59 MB / 442.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.5444/1.297, allocations: 145.6 MB / 0.7581 GB, free: 93.86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/1.297, allocations: 9.188 kB / 0.7581 GB, free: 93.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02875/1.325, allocations: 6.982 MB / 0.7649 GB, free: 92.69 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02189/1.347, allocations: 8.311 MB / 0.773 GB, free: 89.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003877/1.348, allocations: 212.2 kB / 0.7732 GB, free: 89.79 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002843/1.351, allocations: 403.2 kB / 0.7736 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01721/1.368, allocations: 10.06 MB / 0.7835 GB, free: 82.85 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02298/1.391, allocations: 14.59 MB / 0.7977 GB, free: 66.82 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000306/1.391, allocations: 103 kB / 0.7978 GB, free: 66.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001567/1.393, allocations: 44 kB / 0.7978 GB, free: 66.68 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002046/1.395, allocations: 1.7 MB / 0.7995 GB, free: 64.98 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06875/1.464, allocations: 75.83 MB / 0.8736 GB, free: 3.031 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00664/1.47, allocations: 5.313 MB / 0.8787 GB, free: 13.57 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00517/1.475, allocations: 4.274 MB / 0.8829 GB, free: 9.289 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1706/1.646, allocations: 14.22 MB / 0.8968 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.792e-05/1.646, allocations: 71.59 kB / 0.8969 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=281): time 6.542e-06/1.646, allocations: 0 / 0.8969 GB, free: 168.1 MB / 0.5261 GB Notification: Performance of matching and sorting (n=363): time 0.09304/1.739, allocations: 38.27 MB / 0.9342 GB, free: 164.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.623e-05/1.739, allocations: 275.4 kB / 0.9345 GB, free: 164 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005958/1.745, allocations: 4.708 MB / 0.9391 GB, free: 162.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005041/1.746, allocations: 28.8 kB / 0.9391 GB, free: 162.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001684/1.748, allocations: 4.311 MB / 0.9433 GB, free: 159.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001258/1.749, allocations: 1.297 MB / 0.9446 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004032/1.749, allocations: 0 / 0.9446 GB, free: 158.5 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003779/1.75, allocations: 0.7043 MB / 0.9453 GB, free: 158 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004425/1.754, allocations: 3.663 MB / 0.9489 GB, free: 156.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006004/1.76, allocations: 9.005 MB / 0.9577 GB, free: 148.2 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008284/1.768, allocations: 5.994 MB / 0.9635 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.906e-05/1.768, allocations: 54.12 kB / 0.9636 GB, free: 146.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1234) (initialization): time 0.0309/1.799, allocations: 15.14 MB / 0.9784 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/1.799, allocations: 5.406 kB / 0.9784 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000284/1.8, allocations: 188.9 kB / 0.9785 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.015/1.815, allocations: 3.853 MB / 0.9823 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008205/1.823, allocations: 2.072 MB / 0.9843 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03072/1.854, allocations: 19.91 MB / 1.004 GB, free: 124.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007919/1.862, allocations: 334.5 kB / 1.004 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001135/1.863, allocations: 0.553 MB / 1.005 GB, free: 123.6 MB / 0.5261 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.001349/1.864, allocations: 0.58 MB / 1.005 GB, free: 123 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007959/1.865, allocations: 0.537 MB / 1.006 GB, free: 122.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02215/1.887, allocations: 9.466 MB / 1.015 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.587e-05/1.887, allocations: 36 kB / 1.015 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-05/1.887, allocations: 16 kB / 1.015 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.484e-05/1.887, allocations: 17.2 kB / 1.015 GB, free: 115.1 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03642/1.924, allocations: 17.91 MB / 1.033 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.736e-05/1.924, allocations: 11.84 kB / 1.033 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002755/1.927, allocations: 477.8 kB / 1.033 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01362/1.94, allocations: 3.46 MB / 1.036 GB, free: 98.02 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005204/1.941, allocations: 15.66 kB / 1.036 GB, free: 98.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02872/1.969, allocations: 18.43 MB / 1.054 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/1.969, allocations: 0 / 1.054 GB, free: 80.95 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02588/1.995, allocations: 14.22 MB / 1.068 GB, free: 66.67 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03029/2.026, allocations: 18.99 MB / 1.087 GB, free: 47.61 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/2.027, allocations: 0.5292 MB / 1.087 GB, free: 47.05 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000972/2.028, allocations: 11.89 kB / 1.087 GB, free: 47.04 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002891/2.031, allocations: 127.8 kB / 1.087 GB, free: 46.92 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004615/2.031, allocations: 162.2 kB / 1.088 GB, free: 46.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003674/2.032, allocations: 99.98 kB / 1.088 GB, free: 46.66 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004224/2.036, allocations: 3.175 MB / 1.091 GB, free: 43.52 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007756/2.044, allocations: 1.577 MB / 1.092 GB, free: 41.95 MB / 0.5261 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.000596/2.044, allocations: 186.9 kB / 1.093 GB, free: 41.77 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.1707/2.215, allocations: 9.174 MB / 1.101 GB, free: 160.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/2.215, allocations: 2.625 kB / 1.101 GB, free: 160.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005023/2.22, allocations: 3.553 MB / 1.105 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003108/2.223, allocations: 0.5755 MB / 1.106 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02356/2.247, allocations: 13.32 MB / 1.119 GB, free: 158.4 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006346/2.253, allocations: 5.366 MB / 1.124 GB, free: 157.5 MB / 0.5261 GB Notification: Performance of SimCode: time 7.51e-07/2.253, allocations: 2.062 kB / 1.124 GB, free: 157.5 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)