Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForcesAndTorques",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.001752/0.001752, allocations: 199.2 kB / 8.535 MB, free: 1.727 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 225.5 MB / 234.4 MB, free: 3.387 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008797/0.0008797, allocations: 89.36 kB / 286.3 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1716/0.1716, allocations: 45.13 MB / 383.3 MB, free: 0.582 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1931/0.3648, allocations: 69.37 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08375/0.4485, allocations: 63.24 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2682/0.7168, allocations: 111 MB / 0.6123 GB, free: 8.32 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001976/0.717, allocations: 74.16 kB / 0.6123 GB, free: 8.285 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: 2487 * Number of variables: 2487 Notification: Performance of Generate backend data structure: time 0.3518/1.069, allocations: 142.8 MB / 0.7518 GB, free: 1.234 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/1.069, allocations: 8 kB / 0.7518 GB, free: 1.227 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1725/1.241, allocations: 6.809 MB / 0.7585 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01499/1.256, allocations: 6.704 MB / 0.765 GB, free: 165 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002067/1.257, allocations: 233.3 kB / 0.7652 GB, free: 165 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001571/1.258, allocations: 421.6 kB / 0.7656 GB, free: 165 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01374/1.272, allocations: 10.17 MB / 0.7756 GB, free: 165 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01859/1.291, allocations: 15.32 MB / 0.7905 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002063/1.291, allocations: 91.81 kB / 0.7906 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007279/1.292, allocations: 42.91 kB / 0.7906 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001641/1.293, allocations: 1.728 MB / 0.7923 GB, free: 161.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06245/1.356, allocations: 74.35 MB / 0.8649 GB, free: 113.2 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006043/1.362, allocations: 6.346 MB / 0.8711 GB, free: 110 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004439/1.366, allocations: 4.117 MB / 0.8752 GB, free: 108.3 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01443/1.381, allocations: 11.24 MB / 0.8861 GB, free: 99.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.42e-05/1.381, allocations: 63.16 kB / 0.8862 GB, free: 99.02 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=250): time 4.799e-06/1.381, allocations: 4 kB / 0.8862 GB, free: 99.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=292): time 0.05022/1.431, allocations: 26.8 MB / 0.9124 GB, free: 76.02 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/1.431, allocations: 243.6 kB / 0.9126 GB, free: 75.73 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005487/1.436, allocations: 4.821 MB / 0.9173 GB, free: 71.52 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002778/1.437, allocations: 25.7 kB / 0.9173 GB, free: 71.49 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00156/1.438, allocations: 4.578 MB / 0.9218 GB, free: 67.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007626/1.439, allocations: 1.093 MB / 0.9229 GB, free: 66.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000353/1.439, allocations: 0 / 0.9229 GB, free: 66.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003417/1.44, allocations: 0.6899 MB / 0.9236 GB, free: 65.81 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003858/1.444, allocations: 3.385 MB / 0.9269 GB, free: 62.78 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005319/1.449, allocations: 8.709 MB / 0.9354 GB, free: 52.09 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005604/1.455, allocations: 5.402 MB / 0.9406 GB, free: 47.46 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.393e-05/1.455, allocations: 52 kB / 0.9407 GB, free: 47.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1186) (initialization): time 0.01732/1.472, allocations: 12.2 MB / 0.9526 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/1.472, allocations: 4 kB / 0.9526 GB, free: 36.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/1.472, allocations: 192 kB / 0.9528 GB, free: 36.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003789/1.476, allocations: 1.627 MB / 0.9544 GB, free: 35.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006802/1.483, allocations: 2.144 MB / 0.9565 GB, free: 33.59 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01246/1.495, allocations: 10.38 MB / 0.9666 GB, free: 24.22 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006657/1.502, allocations: 286.1 kB / 0.9669 GB, free: 23.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001091/1.503, allocations: 0.5429 MB / 0.9674 GB, free: 23.45 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 865 * Number of states: 0 () * Number of discrete variables: 77 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],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],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque2.torqueArrow.headAtOrigin,forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque2.forceArrow.headAtOrigin,forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueArrow.arrowLine.twoHeadedArrow,forceAndTorque1.torqueArrow.headAtOrigin,forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceArrow.arrowLine.twoHeadedArrow,forceAndTorque1.forceArrow.headAtOrigin,forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 (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 {(4,75.0%) 21,(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001005/1.504, allocations: 0.5846 MB / 0.968 GB, free: 22.86 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006583/1.505, allocations: 0.506 MB / 0.9685 GB, free: 22.35 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009612/1.514, allocations: 6.174 MB / 0.9745 GB, free: 16.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-05/1.514, allocations: 32 kB / 0.9745 GB, free: 16.16 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.426e-05/1.514, allocations: 15.88 kB / 0.9746 GB, free: 16.15 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.136e-05/1.514, allocations: 11.95 kB / 0.9746 GB, free: 16.14 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.535, allocations: 13.22 MB / 0.9875 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/1.535, allocations: 0 / 0.9875 GB, free: 2.957 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/1.537, allocations: 0.5109 MB / 0.988 GB, free: 2.445 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003423/1.541, allocations: 1.318 MB / 0.9893 GB, free: 1.121 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002742/1.541, allocations: 4 kB / 0.9893 GB, free: 1.117 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1628/1.704, allocations: 9.649 MB / 0.9987 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.704, allocations: 3.812 kB / 0.9987 GB, free: 144 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01328/1.717, allocations: 10.41 MB / 1.009 GB, free: 143.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0165/1.734, allocations: 14.5 MB / 1.023 GB, free: 142.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/1.735, allocations: 0.5268 MB / 1.024 GB, free: 142 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007844/1.736, allocations: 3.75 kB / 1.024 GB, free: 142 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002165/1.738, allocations: 94.81 kB / 1.024 GB, free: 142 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003499/1.738, allocations: 129.5 kB / 1.024 GB, free: 142 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002667/1.739, allocations: 73.38 kB / 1.024 GB, free: 142 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.004158/1.743, allocations: 3.255 MB / 1.027 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0067/1.749, allocations: 1.418 MB / 1.028 GB, free: 141.8 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.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 (234): * Single equations (assignments): 229 * 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.0004487/1.75, allocations: 163.8 kB / 1.029 GB, free: 141.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01055/1.76, allocations: 8.322 MB / 1.037 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/1.76, allocations: 0 / 1.037 GB, free: 141.5 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004312/1.765, allocations: 3.118 MB / 1.04 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002623/1.767, allocations: 0.5602 MB / 1.04 GB, free: 141.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02083/1.788, allocations: 13.19 MB / 1.053 GB, free: 137.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006683/1.795, allocations: 5.593 MB / 1.059 GB, free: 136 MB / 0.5261 GB Notification: Performance of SimCode: time 7.91e-07/1.795, allocations: 0 / 1.059 GB, free: 136 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1)