Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.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.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3",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.001872/0.001872, allocations: 204 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 225.5 MB / 234.4 MB, free: 3.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000911/0.0009109, allocations: 93.61 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1669/0.1669, allocations: 45.14 MB / 383.3 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1814/0.3483, allocations: 69.37 MB / 452.7 MB, free: 76.15 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07817/0.4265, allocations: 63.24 MB / 0.5039 GB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2554/0.682, allocations: 107.6 MB / 0.6089 GB, free: 11.57 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001893/0.6822, allocations: 76.89 kB / 0.609 GB, free: 11.53 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: 2101 * Number of variables: 2101 Notification: Performance of Generate backend data structure: time 0.3053/0.9875, allocations: 124.3 MB / 0.7304 GB, free: 7.312 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.9876, allocations: 8 kB / 0.7304 GB, free: 7.305 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02752/1.015, allocations: 6.601 MB / 0.7368 GB, free: 0.6836 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01516/1.03, allocations: 6.057 MB / 0.7427 GB, free: 10.57 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/1.031, allocations: 196 kB / 0.7429 GB, free: 10.38 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001271/1.032, allocations: 355.9 kB / 0.7432 GB, free: 10.03 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01338/1.045, allocations: 8.802 MB / 0.7518 GB, free: 1.215 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1518/1.197, allocations: 12.99 MB / 0.7645 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001988/1.197, allocations: 82.12 kB / 0.7646 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007038/1.198, allocations: 33.75 kB / 0.7646 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00141/1.199, allocations: 1.463 MB / 0.7661 GB, free: 171.5 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05189/1.251, allocations: 60.31 MB / 0.825 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005215/1.257, allocations: 5.351 MB / 0.8302 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003443/1.26, allocations: 3.759 MB / 0.8339 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/1.272, allocations: 10.11 MB / 0.8437 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.857e-05/1.272, allocations: 62.05 kB / 0.8438 GB, free: 130 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=228): time 4.849e-06/1.272, allocations: 0 / 0.8438 GB, free: 130 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270): time 0.04546/1.318, allocations: 23.08 MB / 0.8663 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/1.318, allocations: 212.2 kB / 0.8665 GB, free: 121.5 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005122/1.323, allocations: 3.702 MB / 0.8701 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005407/1.324, allocations: 25.7 kB / 0.8702 GB, free: 119.4 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001308/1.325, allocations: 3.736 MB / 0.8738 GB, free: 116 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008697/1.326, allocations: 0.9853 MB / 0.8748 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/1.326, allocations: 4 kB / 0.8748 GB, free: 115.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002787/1.327, allocations: 0.6113 MB / 0.8754 GB, free: 114.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003388/1.33, allocations: 2.95 MB / 0.8783 GB, free: 112 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00456/1.335, allocations: 7.152 MB / 0.8853 GB, free: 103.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005326/1.34, allocations: 4.567 MB / 0.8897 GB, free: 99.73 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-05/1.34, allocations: 44 kB / 0.8898 GB, free: 99.69 MB / 0.5261 GB Notification: Performance of matching and sorting (n=963) (initialization): time 0.01683/1.357, allocations: 10.49 MB / 0.9 GB, free: 90.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/1.357, allocations: 4 kB / 0.9 GB, free: 90.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001227/1.357, allocations: 152 kB / 0.9001 GB, free: 90.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003875/1.361, allocations: 1.568 MB / 0.9017 GB, free: 89.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005818/1.367, allocations: 1.684 MB / 0.9033 GB, free: 87.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01223/1.379, allocations: 10.31 MB / 0.9134 GB, free: 78.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/1.385, allocations: 234.9 kB / 0.9136 GB, free: 78.41 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/1.386, allocations: 453.6 kB / 0.914 GB, free: 77.98 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 683 * Number of states: 0 () * Number of discrete variables: 59 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.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],frameTorque2.torqueArrow.arrowLine.twoHeadedArrow,frameTorque2.torqueArrow.headAtOrigin,frameTorque2.torqueColor[3],frameTorque2.torqueColor[2],frameTorque2.torqueColor[1],frameTorque2.forceArrow.arrowLine.twoHeadedArrow,frameTorque2.forceArrow.headAtOrigin,frameTorque2.forceColor[3],frameTorque2.forceColor[2],frameTorque2.forceColor[1],frameTorque1.torqueArrow.arrowLine.twoHeadedArrow,frameTorque1.torqueArrow.headAtOrigin,frameTorque1.torqueColor[3],frameTorque1.torqueColor[2],frameTorque1.torqueColor[1],frameTorque1.forceArrow.arrowLine.twoHeadedArrow,frameTorque1.forceArrow.headAtOrigin,frameTorque1.forceColor[3],frameTorque1.forceColor[2],frameTorque1.forceColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[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 (891): * Single equations (assignments): 886 * 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.0009539/1.387, allocations: 496 kB / 0.9145 GB, free: 77.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006185/1.387, allocations: 418.6 kB / 0.9149 GB, free: 77.09 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009202/1.397, allocations: 5.793 MB / 0.9206 GB, free: 72.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.516e-05/1.397, allocations: 24 kB / 0.9206 GB, free: 72.35 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.79e-05/1.397, allocations: 11.91 kB / 0.9206 GB, free: 72.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-05/1.397, allocations: 17.59 kB / 0.9206 GB, free: 72.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/1.416, allocations: 12.19 MB / 0.9325 GB, free: 62.45 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/1.417, allocations: 3.938 kB / 0.9325 GB, free: 62.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002431/1.419, allocations: 414.9 kB / 0.9329 GB, free: 62.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003764/1.423, allocations: 1.312 MB / 0.9342 GB, free: 61.14 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003619/1.423, allocations: 9.547 kB / 0.9342 GB, free: 61.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/1.435, allocations: 9.66 MB / 0.9437 GB, free: 51.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/1.435, allocations: 0 / 0.9437 GB, free: 51.94 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01275/1.448, allocations: 9.712 MB / 0.9531 GB, free: 42.14 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0161/1.464, allocations: 13.56 MB / 0.9664 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009992/1.465, allocations: 447.5 kB / 0.9668 GB, free: 28.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007306/1.466, allocations: 4 kB / 0.9668 GB, free: 28.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002001/1.468, allocations: 111.8 kB / 0.9669 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003416/1.468, allocations: 125.8 kB / 0.967 GB, free: 27.79 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000251/1.468, allocations: 64 kB / 0.9671 GB, free: 27.72 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.003313/1.472, allocations: 2.494 MB / 0.9695 GB, free: 25.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006505/1.478, allocations: 1.217 MB / 0.9707 GB, free: 24.02 MB / 0.5261 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 (212): * Single equations (assignments): 207 * 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.0005762/1.479, allocations: 165.6 kB / 0.9709 GB, free: 23.86 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009941/1.489, allocations: 7.356 MB / 0.9781 GB, free: 16.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/1.489, allocations: 0 / 0.9781 GB, free: 16.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004243/1.493, allocations: 2.965 MB / 0.981 GB, free: 13.53 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00251/1.496, allocations: 493 kB / 0.9814 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/1.514, allocations: 11.37 MB / 0.9925 GB, free: 1.633 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1472/1.661, allocations: 4.818 MB / 0.9972 GB, free: 160.8 MB / 0.5261 GB Notification: Performance of SimCode: time 9.32e-07/1.662, allocations: 0 / 0.9972 GB, free: 160.8 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_FrameForcesAndTorques3.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.FrameForcesAndTorques3.pipe 2>&1)