Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.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.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2",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.001402/0.001402, allocations: 189.2 kB / 7.803 MB, free: 2.488 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.379/1.379, allocations: 205.2 MB / 213.4 MB, free: 13.84 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.001016/0.001016, allocations: 95.44 kB / 261.4 MB, free: 13.52 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.2155/0.2155, allocations: 43.5 MB / 352.9 MB, free: 1.926 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2285/0.444, allocations: 64.97 MB / 417.8 MB, free: 40.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.82, allocations: 58.83 MB / 476.7 MB, free: 5.281 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1545/0.9745, allocations: 106.7 MB / 0.5697 GB, free: 8.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/0.9749, allocations: 71.95 kB / 0.5698 GB, free: 8.16 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: 2413 * Number of variables: 2413 Notification: Performance of Generate backend data structure: time 0.6204/1.595, allocations: 135.7 MB / 0.7023 GB, free: 97.95 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/1.595, allocations: 8.75 kB / 0.7023 GB, free: 97.95 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03184/1.627, allocations: 6.745 MB / 0.7089 GB, free: 94.17 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02596/1.653, allocations: 7.338 MB / 0.7161 GB, free: 90.18 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008401/1.654, allocations: 226.4 kB / 0.7163 GB, free: 90.07 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004527/1.659, allocations: 403.8 kB / 0.7167 GB, free: 89.68 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02236/1.681, allocations: 9.817 MB / 0.7263 GB, free: 79.86 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0416/1.723, allocations: 14.69 MB / 0.7406 GB, free: 63.82 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006996/1.723, allocations: 87.19 kB / 0.7407 GB, free: 63.73 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004562/1.728, allocations: 40 kB / 0.7407 GB, free: 63.7 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002344/1.73, allocations: 1.662 MB / 0.7424 GB, free: 62.04 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09767/1.828, allocations: 68.5 MB / 0.8092 GB, free: 8.117 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009234/1.837, allocations: 5.921 MB / 0.815 GB, free: 2.059 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006206/1.844, allocations: 4.109 MB / 0.819 GB, free: 13.94 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02606/1.87, allocations: 11.27 MB / 0.83 GB, free: 2.547 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.426e-05/1.87, allocations: 72.41 kB / 0.8301 GB, free: 2.469 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=272): time 7.424e-06/1.87, allocations: 0 / 0.8301 GB, free: 2.469 MB / 0.4948 GB Notification: Performance of matching and sorting (n=314): time 0.3314/2.201, allocations: 26.31 MB / 0.8558 GB, free: 169.1 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.88e-05/2.201, allocations: 218.8 kB / 0.856 GB, free: 168.8 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008411/2.21, allocations: 4.407 MB / 0.8603 GB, free: 168.4 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001146/2.211, allocations: 29.27 kB / 0.8603 GB, free: 168.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003154/2.214, allocations: 4.367 MB / 0.8646 GB, free: 165.6 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002256/2.217, allocations: 1.148 MB / 0.8657 GB, free: 165 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006327/2.217, allocations: 3.344 kB / 0.8657 GB, free: 165 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004901/2.218, allocations: 0.6766 MB / 0.8664 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006469/2.224, allocations: 3.702 MB / 0.87 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01132/2.236, allocations: 8.724 MB / 0.8785 GB, free: 157.3 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009502/2.245, allocations: 5.641 MB / 0.884 GB, free: 155.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002441/2.245, allocations: 48.97 kB / 0.8841 GB, free: 155.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1158) (initialization): time 0.03241/2.278, allocations: 12.67 MB / 0.8965 GB, free: 151.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/2.278, allocations: 3.219 kB / 0.8965 GB, free: 151.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000479/2.278, allocations: 181 kB / 0.8966 GB, free: 151.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005591/2.284, allocations: 1.613 MB / 0.8982 GB, free: 151.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01002/2.294, allocations: 2.117 MB / 0.9003 GB, free: 151.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01414/2.308, allocations: 10.42 MB / 0.9105 GB, free: 143.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009951/2.318, allocations: 307.8 kB / 0.9108 GB, free: 143.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003068/2.321, allocations: 0.5244 MB / 0.9113 GB, free: 142.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 815 * Number of states: 0 () * Number of discrete variables: 54 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1086): * Single equations (assignments): 1081 * 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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004177/2.326, allocations: 0.5549 MB / 0.9118 GB, free: 142.1 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/2.328, allocations: 481.8 kB / 0.9123 GB, free: 141.6 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01287/2.341, allocations: 7.028 MB / 0.9191 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.564e-05/2.341, allocations: 28 kB / 0.9192 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.369e-05/2.341, allocations: 11.91 kB / 0.9192 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.817e-05/2.341, allocations: 14.06 kB / 0.9192 GB, free: 135.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03238/2.373, allocations: 14.3 MB / 0.9331 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.004e-05/2.373, allocations: 4 kB / 0.9331 GB, free: 124.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004499/2.378, allocations: 0.5563 MB / 0.9337 GB, free: 123.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003891/2.382, allocations: 1.322 MB / 0.935 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009731/2.383, allocations: 11.47 kB / 0.935 GB, free: 122.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01201/2.395, allocations: 9.659 MB / 0.9444 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/2.395, allocations: 4 kB / 0.9444 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01969/2.415, allocations: 11.75 MB / 0.9559 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02574/2.44, allocations: 16.49 MB / 0.972 GB, free: 88.99 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003483/2.444, allocations: 1.065 MB / 0.973 GB, free: 88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001711/2.446, allocations: 7.609 kB / 0.9731 GB, free: 87.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003722/2.449, allocations: 153.1 kB / 0.9732 GB, free: 87.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005297/2.45, allocations: 137.9 kB / 0.9733 GB, free: 87.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002976/2.45, allocations: 82.8 kB / 0.9734 GB, free: 87.74 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.007163/2.457, allocations: 2.966 MB / 0.9763 GB, free: 85.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01367/2.471, allocations: 1.428 MB / 0.9777 GB, free: 83.74 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (258): * Single equations (assignments): 253 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001349/2.472, allocations: 165.9 kB / 0.9779 GB, free: 83.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0167/2.489, allocations: 9.06 MB / 0.9867 GB, free: 74.52 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/2.489, allocations: 0 / 0.9867 GB, free: 74.52 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007208/2.496, allocations: 3.563 MB / 0.9902 GB, free: 70.94 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004929/2.501, allocations: 493.4 kB / 0.9907 GB, free: 70.48 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03584/2.537, allocations: 13.21 MB / 1.004 GB, free: 57.21 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01211/2.55, allocations: 5.401 MB / 1.009 GB, free: 51.81 MB / 0.4948 GB Notification: Performance of SimCode: time 1.533e-06/2.55, allocations: 0 / 1.009 GB, free: 51.81 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques2.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques2.pipe 2>&1)