Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.001121/0.001121, allocations: 190.4 kB / 7.802 MB, free: 2.5 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.293/1.293, allocations: 205.2 MB / 213.4 MB, free: 13.87 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.0008824/0.0008824, allocations: 100.4 kB / 261.4 MB, free: 13.55 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.2022/0.2022, allocations: 43.5 MB / 352.9 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2216/0.4239, allocations: 64.96 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.7312, allocations: 58.84 MB / 476.6 MB, free: 5.184 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1589/0.8902, allocations: 105.9 MB / 0.5689 GB, free: 8.957 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002586/0.8905, allocations: 79.95 kB / 0.569 GB, free: 8.879 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.4584/1.349, allocations: 77.77 MB / 0.645 GB, free: 107.3 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/1.349, allocations: 13.22 kB / 0.645 GB, free: 107.3 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01619/1.365, allocations: 3.926 MB / 0.6488 GB, free: 107.1 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01239/1.378, allocations: 4.528 MB / 0.6532 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001376/1.378, allocations: 123 kB / 0.6533 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009381/1.379, allocations: 213.3 kB / 0.6535 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007167/1.386, allocations: 5.306 MB / 0.6587 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009668/1.396, allocations: 8.375 MB / 0.6669 GB, free: 103.8 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001894/1.396, allocations: 62.94 kB / 0.667 GB, free: 103.8 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000512/1.396, allocations: 28.44 kB / 0.667 GB, free: 103.8 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001407/1.398, allocations: 0.945 MB / 0.6679 GB, free: 103.8 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04049/1.438, allocations: 44.32 MB / 0.7112 GB, free: 70.61 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003399/1.442, allocations: 2.588 MB / 0.7137 GB, free: 69.17 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00264/1.444, allocations: 1.653 MB / 0.7153 GB, free: 68.46 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/1.455, allocations: 5.535 MB / 0.7208 GB, free: 65.22 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/1.455, allocations: 52.91 kB / 0.7208 GB, free: 65.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=151): time 5.1e-06/1.455, allocations: 0 / 0.7208 GB, free: 65.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=188): time 0.04451/1.499, allocations: 17.12 MB / 0.7375 GB, free: 58.37 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/1.5, allocations: 201.2 kB / 0.7377 GB, free: 58.13 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004664/1.504, allocations: 2.948 MB / 0.7406 GB, free: 55.54 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004193/1.505, allocations: 25.7 kB / 0.7406 GB, free: 55.51 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001394/1.506, allocations: 2.692 MB / 0.7432 GB, free: 53.07 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007496/1.507, allocations: 0.7023 MB / 0.7439 GB, free: 52.44 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/1.507, allocations: 0 / 0.7439 GB, free: 52.44 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003364/1.507, allocations: 0.5574 MB / 0.7445 GB, free: 51.95 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002307/1.51, allocations: 1.954 MB / 0.7464 GB, free: 50.18 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00373/1.514, allocations: 5.615 MB / 0.7519 GB, free: 43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005019/1.519, allocations: 3.66 MB / 0.7554 GB, free: 39.93 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.624e-05/1.519, allocations: 36 kB / 0.7555 GB, free: 39.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=792) (initialization): time 0.01832/1.537, allocations: 8.22 MB / 0.7635 GB, free: 32.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/1.537, allocations: 8.875 kB / 0.7635 GB, free: 32.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001194/1.537, allocations: 132 kB / 0.7636 GB, free: 32.81 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005626/1.543, allocations: 1.454 MB / 0.7651 GB, free: 31.72 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004284/1.547, allocations: 1.334 MB / 0.7664 GB, free: 30.54 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/1.561, allocations: 8.452 MB / 0.7746 GB, free: 22.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005504/1.567, allocations: 179.6 kB / 0.7748 GB, free: 22.57 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001392/1.568, allocations: 379.8 kB / 0.7751 GB, free: 22.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (724): * Single equations (assignments): 720 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00188/1.57, allocations: 438.4 kB / 0.7756 GB, free: 21.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000815/1.571, allocations: 315.9 kB / 0.7759 GB, free: 21.46 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009378/1.58, allocations: 3.893 MB / 0.7797 GB, free: 17.56 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-05/1.581, allocations: 20 kB / 0.7797 GB, free: 17.54 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/1.581, allocations: 8 kB / 0.7797 GB, free: 17.53 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-05/1.581, allocations: 7.969 kB / 0.7797 GB, free: 17.52 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0217/1.602, allocations: 7.648 MB / 0.7872 GB, free: 9.879 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-05/1.602, allocations: 4 kB / 0.7872 GB, free: 9.875 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001391/1.604, allocations: 223.7 kB / 0.7874 GB, free: 9.656 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005037/1.609, allocations: 1.241 MB / 0.7886 GB, free: 8.41 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000396/1.609, allocations: 15.98 kB / 0.7886 GB, free: 8.395 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01404/1.623, allocations: 7.975 MB / 0.7964 GB, free: 312 kB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.167e-06/1.623, allocations: 0 / 0.7964 GB, free: 312 kB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01531/1.639, allocations: 6.467 MB / 0.8027 GB, free: 9.793 MB / 490.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01839/1.657, allocations: 8.757 MB / 0.8113 GB, free: 1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002102/1.659, allocations: 0.5944 MB / 0.8119 GB, free: 392 kB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001083/1.66, allocations: 4 kB / 0.8119 GB, free: 388 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002087/1.663, allocations: 48 kB / 0.8119 GB, free: 340 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003048/1.663, allocations: 81.12 kB / 0.812 GB, free: 260 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002178/1.663, allocations: 55.98 kB / 0.812 GB, free: 204 kB / 490.7 MB Notification: Performance of sort global known variables: time 0.005654/1.669, allocations: 1.969 MB / 0.814 GB, free: 14.24 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008707/1.678, allocations: 0.832 MB / 0.8148 GB, free: 13.41 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 122 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009516/1.679, allocations: 161.8 kB / 0.8149 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.009497/1.688, allocations: 4.803 MB / 0.8196 GB, free: 8.461 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/1.688, allocations: 0 / 0.8196 GB, free: 8.461 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002863/1.691, allocations: 1.561 MB / 0.8211 GB, free: 6.891 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002572/1.694, allocations: 297.5 kB / 0.8214 GB, free: 6.609 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2243/1.918, allocations: 6.986 MB / 0.8282 GB, free: 177.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004715/1.923, allocations: 3.293 MB / 0.8315 GB, free: 177.1 MB / 0.4948 GB Notification: Performance of SimCode: time 9.62e-07/1.923, allocations: 0 / 0.8315 GB, free: 177.1 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)