Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001514/0.001514, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.499/1.499, allocations: 227.4 MB / 246.8 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.241/0.241, allocations: 46.12 MB / 344.2 MB, free: 11.55 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002284/0.002284, allocations: 84.88 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1329, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques2): time 0.02007/0.153, allocations: 17.84 MB / 498 MB, free: 3.199 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01261/0.1656, allocations: 5.63 MB / 0.4919 GB, free: 13.55 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003763/0.1694, allocations: 131.6 kB / 0.492 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01175/0.1813, allocations: 6.269 MB / 0.4981 GB, free: 7.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008956/0.1902, allocations: 2.886 MB / 0.5009 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003752/0.194, allocations: 1.591 MB / 0.5025 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2726/0.4666, allocations: 9.863 MB / 0.5121 GB, free: 12.49 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01328/0.4799, allocations: 8 MB / 0.5199 GB, free: 11.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007458/0.4874, allocations: 3.105 MB / 0.523 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008755/0.4962, allocations: 4.221 MB / 0.5271 GB, free: 9.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003433/0.4997, allocations: 0.6883 MB / 0.5278 GB, free: 9.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005583/0.5053, allocations: 1.693 MB / 0.5294 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005949/0.5113, allocations: 3.818 MB / 0.5331 GB, free: 8.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009985/0.5213, allocations: 4.325 MB / 0.5374 GB, free: 5.352 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01836/0.5397, allocations: 12.92 MB / 0.55 GB, free: 10.67 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.498e-06/0.5398, allocations: 0 / 0.55 GB, free: 10.67 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5398, allocations: 0 / 0.55 GB, free: 10.67 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005938/0.5404, allocations: 7.984 kB / 0.55 GB, free: 10.66 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2491 * Number of variables: 2491 Notification: Performance of Generate backend data structure: time 0.03066/0.5711, allocations: 9.398 MB / 0.5592 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.552e-05/0.5712, allocations: 8.031 kB / 0.5592 GB, free: 1.32 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005315/0.5765, allocations: 1.192 MB / 0.5603 GB, free: 172 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07473/0.6513, allocations: 10.45 MB / 0.5706 GB, free: 5.688 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01608/0.6674, allocations: 6.696 MB / 0.5771 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004822/0.6679, allocations: 445.8 kB / 0.5775 GB, free: 14.85 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002399/0.6703, allocations: 0.599 MB / 0.5781 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03749/0.7078, allocations: 16.85 MB / 0.5946 GB, free: 12.68 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004601/0.7083, allocations: 86.08 kB / 0.5946 GB, free: 12.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002146/0.7105, allocations: 280.1 kB / 0.5949 GB, free: 12.4 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005888/0.7164, allocations: 2.89 MB / 0.5977 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03404/0.7505, allocations: 13.82 MB / 0.6112 GB, free: 11.97 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09601/0.8465, allocations: 63.72 MB / 0.6735 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01969/0.8663, allocations: 6.374 MB / 0.6797 GB, free: 5.012 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005525/0.8718, allocations: 3.639 MB / 0.6832 GB, free: 1.355 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008747/0.8727, allocations: 0.6498 MB / 0.6839 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.138e-05/0.8728, allocations: 72.14 kB / 0.6839 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=231): time 5.611e-06/0.8729, allocations: 0 / 0.6839 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of matching and sorting (n=255): time 0.08898/0.9619, allocations: 27.79 MB / 0.7111 GB, free: 4.516 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002082/0.9621, allocations: 279 kB / 0.7113 GB, free: 4.184 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4662/1.428, allocations: 7.33 MB / 0.7185 GB, free: 186.6 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0006363/1.429, allocations: 63.95 kB / 0.7186 GB, free: 186.6 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004841/1.434, allocations: 5.194 MB / 0.7236 GB, free: 183.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001444/1.435, allocations: 0.9926 MB / 0.7246 GB, free: 183 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002808/1.438, allocations: 1.698 MB / 0.7263 GB, free: 182.1 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 6.559e-05/1.438, allocations: 306.1 kB / 0.7266 GB, free: 181.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004985/1.443, allocations: 2.994 MB / 0.7295 GB, free: 180.9 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008321/1.452, allocations: 8.146 MB / 0.7374 GB, free: 173 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/1.465, allocations: 12.08 MB / 0.7492 GB, free: 162.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002689/1.465, allocations: 59 kB / 0.7493 GB, free: 162.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1090) (initialization): time 0.02288/1.488, allocations: 11.87 MB / 0.7609 GB, free: 158.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001738/1.488, allocations: 83.47 kB / 0.761 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002796/1.488, allocations: 183.4 kB / 0.7611 GB, free: 158.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004121/1.493, allocations: 1.287 MB / 0.7624 GB, free: 158.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00874/1.501, allocations: 1.918 MB / 0.7643 GB, free: 157.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01742/1.519, allocations: 13.71 MB / 0.7776 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007731/1.526, allocations: 461.7 kB / 0.7781 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001516/1.528, allocations: 0.5028 MB / 0.7786 GB, free: 146.5 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 827 * Number of states: 0 () * Number of discrete variables: 74 (frameTorque4.arrow.twoHeadedArrow,frameTorque4.arrow.headAtOrigin,frameTorque3.arrow.twoHeadedArrow,frameTorque3.arrow.headAtOrigin,frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1010): * Single equations (assignments): 1003 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,14,100.0%), (1,14,100.0%), (1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006847/1.535, allocations: 3.406 MB / 0.7819 GB, free: 143.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001561/1.536, allocations: 0.6131 MB / 0.7825 GB, free: 142.9 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008445/1.545, allocations: 4.977 MB / 0.7874 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.382e-05/1.545, allocations: 28 kB / 0.7874 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.749e-05/1.545, allocations: 11.98 kB / 0.7874 GB, free: 138 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.469e-05/1.545, allocations: 15.91 kB / 0.7874 GB, free: 137.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02791/1.573, allocations: 12.89 MB / 0.8 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.664e-05/1.573, allocations: 4.875 kB / 0.8 GB, free: 125 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001976/1.575, allocations: 403.4 kB / 0.8004 GB, free: 124.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/1.578, allocations: 0.9926 MB / 0.8014 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003011/1.578, allocations: 44 kB / 0.8014 GB, free: 123.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01055/1.589, allocations: 12.61 MB / 0.8137 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.589, allocations: 3.938 kB / 0.8137 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01082/1.599, allocations: 8.304 MB / 0.8218 GB, free: 102 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001984/1.601, allocations: 0.6764 MB / 0.8225 GB, free: 101.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001784/1.603, allocations: 37.25 kB / 0.8225 GB, free: 101.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003513/1.607, allocations: 143.8 kB / 0.8227 GB, free: 101.2 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000579/1.607, allocations: 149.9 kB / 0.8228 GB, free: 101 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002722/1.608, allocations: 68.88 kB / 0.8229 GB, free: 100.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008367/1.616, allocations: 4.706 MB / 0.8275 GB, free: 96.27 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/1.616, allocations: 0 / 0.8275 GB, free: 96.27 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01206/1.628, allocations: 1.614 MB / 0.829 GB, free: 94.66 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (195): * Single equations (assignments): 188 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,11,100.0%), (1,11,100.0%), (1,11,100.0%), (1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01336/1.642, allocations: 8.98 MB / 0.8378 GB, free: 85.59 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.014/1.656, allocations: 8.912 MB / 0.8465 GB, free: 76.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.608e-06/1.656, allocations: 0 / 0.8465 GB, free: 76.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003304/1.659, allocations: 2.697 MB / 0.8492 GB, free: 73.96 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007736/1.667, allocations: 0.9831 MB / 0.8501 GB, free: 72.99 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3659/2.033, allocations: 98.1 MB / 0.9459 GB, free: 180.2 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007331/2.04, allocations: 5.237 MB / 0.951 GB, free: 178.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.006959/2.047, allocations: 2.693 MB / 0.9537 GB, free: 178.3 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005167/2.052, allocations: 3.487 MB / 0.9571 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of SimCode: time 1.022e-06/2.052, allocations: 0 / 0.9571 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1994/2.252, allocations: 132.3 MB / 1.086 GB, free: 54.58 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/15.76, allocations: 3.094 kB / 1.086 GB, free: 54.58 MB / 0.5607 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1)