Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00165/0.00165, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00193/0.00193, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 247 MB, free: 10.46 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.2217/0.2217, allocations: 46.12 MB / 344.4 MB, free: 11.47 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.002466/0.002466, allocations: 80.16 kB / 480.9 MB, free: 4.516 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3336, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01796/0.3516, allocations: 15.52 MB / 0.5458 GB, free: 1.199 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01096/0.3626, allocations: 4.933 MB / 0.5506 GB, free: 13.23 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00271/0.3653, allocations: 99.75 kB / 0.5507 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00938/0.3747, allocations: 5.004 MB / 0.5556 GB, free: 8.109 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007187/0.382, allocations: 2.462 MB / 0.558 GB, free: 5.641 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002767/0.3848, allocations: 1.076 MB / 0.559 GB, free: 4.562 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.3951, allocations: 6.852 MB / 0.5657 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007437/0.4026, allocations: 5.759 MB / 0.5713 GB, free: 7.859 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004264/0.4069, allocations: 2.372 MB / 0.5737 GB, free: 5.48 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004758/0.4117, allocations: 3.205 MB / 0.5768 GB, free: 2.266 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001315/0.413, allocations: 0.5 MB / 0.5773 GB, free: 1.766 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002994/0.416, allocations: 1.385 MB / 0.5786 GB, free: 388 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00337/0.4194, allocations: 2.977 MB / 0.5815 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004686/0.4241, allocations: 3.395 MB / 0.5848 GB, free: 9.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01348/0.4376, allocations: 10.51 MB / 0.5951 GB, free: 15.43 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.4377, allocations: 0 / 0.5951 GB, free: 15.43 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4377, allocations: 0 / 0.5951 GB, free: 15.43 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002893/0.438, allocations: 4 kB / 0.5951 GB, free: 15.42 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.01786/0.4558, allocations: 7.772 MB / 0.6027 GB, free: 7.555 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.4559, allocations: 16.03 kB / 0.6027 GB, free: 7.539 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001814/0.4577, allocations: 1.025 MB / 0.6037 GB, free: 6.504 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03934/0.4971, allocations: 6.226 MB / 0.6098 GB, free: 272 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01036/0.5075, allocations: 4.677 MB / 0.6144 GB, free: 11.51 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003166/0.5078, allocations: 365.3 kB / 0.6147 GB, free: 11.15 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001677/0.5095, allocations: 475.7 kB / 0.6152 GB, free: 10.68 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02781/0.5373, allocations: 14.12 MB / 0.629 GB, free: 11.54 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002151/0.5376, allocations: 71.41 kB / 0.629 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000897/0.5385, allocations: 227.8 kB / 0.6292 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005001/0.5435, allocations: 2.703 MB / 0.6319 GB, free: 8.543 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02463/0.5682, allocations: 11.78 MB / 0.6434 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07712/0.6454, allocations: 56.93 MB / 0.699 GB, free: 2.344 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01576/0.6612, allocations: 6.157 MB / 0.705 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005057/0.6663, allocations: 3.587 MB / 0.7085 GB, free: 8.414 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2382/0.9045, allocations: 8.303 MB / 0.7166 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.23e-05/0.9046, allocations: 62.06 kB / 0.7167 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 4.929e-06/0.9046, allocations: 4.344 kB / 0.7167 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.06507/0.9697, allocations: 29.18 MB / 0.7452 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/0.9698, allocations: 239.6 kB / 0.7454 GB, free: 151 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007032/0.9769, allocations: 6.71 MB / 0.752 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005034/0.9774, allocations: 65.7 kB / 0.752 GB, free: 144.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002196/0.9796, allocations: 4.631 MB / 0.7565 GB, free: 140.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.9807, allocations: 1.105 MB / 0.7576 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002/0.9827, allocations: 1.73 MB / 0.7593 GB, free: 137.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.137e-05/0.9828, allocations: 305.1 kB / 0.7596 GB, free: 137.1 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003777/0.9866, allocations: 3.358 MB / 0.7629 GB, free: 133.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005444/0.992, allocations: 8.396 MB / 0.7711 GB, free: 122.9 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/1.003, allocations: 12.76 MB / 0.7835 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001146/1.003, allocations: 52 kB / 0.7836 GB, free: 107.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.01982/1.023, allocations: 13.05 MB / 0.7963 GB, free: 94.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.302e-05/1.023, allocations: 82.81 kB / 0.7964 GB, free: 94.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001358/1.023, allocations: 180 kB / 0.7966 GB, free: 94.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003827/1.027, allocations: 1.781 MB / 0.7983 GB, free: 92.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005463/1.032, allocations: 1.945 MB / 0.8002 GB, free: 90.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/1.045, allocations: 12.86 MB / 0.8128 GB, free: 77.39 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006941/1.052, allocations: 498.8 kB / 0.8133 GB, free: 76.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001459/1.053, allocations: 0.5038 MB / 0.8138 GB, free: 76.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1020): * Single equations (assignments): 1013 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004825/1.058, allocations: 2.988 MB / 0.8167 GB, free: 73.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001397/1.059, allocations: 0.5859 MB / 0.8172 GB, free: 72.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01/1.069, allocations: 6.35 MB / 0.8234 GB, free: 66.44 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.655e-05/1.069, allocations: 28 kB / 0.8235 GB, free: 66.41 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.244e-05/1.069, allocations: 11.94 kB / 0.8235 GB, free: 66.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.085e-05/1.069, allocations: 15.95 kB / 0.8235 GB, free: 66.39 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/1.09, allocations: 13.98 MB / 0.8372 GB, free: 52.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/1.09, allocations: 4 kB / 0.8372 GB, free: 52.36 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002037/1.092, allocations: 463.3 kB / 0.8376 GB, free: 51.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00349/1.096, allocations: 1.531 MB / 0.8391 GB, free: 50.37 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003356/1.096, allocations: 59.92 kB / 0.8391 GB, free: 50.31 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01238/1.109, allocations: 12.18 MB / 0.851 GB, free: 37.86 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/1.109, allocations: 11.88 kB / 0.8511 GB, free: 37.85 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01337/1.122, allocations: 10.35 MB / 0.8612 GB, free: 27.36 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001989/1.124, allocations: 0.6609 MB / 0.8618 GB, free: 26.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001663/1.126, allocations: 48 kB / 0.8619 GB, free: 26.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/1.128, allocations: 179.7 kB / 0.862 GB, free: 26.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004784/1.129, allocations: 173.6 kB / 0.8622 GB, free: 26.28 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/1.129, allocations: 83.66 kB / 0.8623 GB, free: 26.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004984/1.134, allocations: 4.294 MB / 0.8665 GB, free: 21.92 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.5e-07/1.134, allocations: 0 / 0.8665 GB, free: 21.92 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006115/1.14, allocations: 1.519 MB / 0.868 GB, free: 20.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01291/1.153, allocations: 11.03 MB / 0.8787 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01092/1.164, allocations: 8.297 MB / 0.8868 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.164, allocations: 0 / 0.8868 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005662/1.17, allocations: 3.241 MB / 0.89 GB, free: 13.66 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005061/1.175, allocations: 0.7578 MB / 0.8907 GB, free: 12.91 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3829/1.558, allocations: 75.72 MB / 0.9647 GB, free: 220.9 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005434/1.563, allocations: 4.536 MB / 0.9691 GB, free: 220.1 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005511/1.569, allocations: 2.771 MB / 0.9718 GB, free: 220 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003798/1.573, allocations: 2.939 MB / 0.9747 GB, free: 218 MB / 0.6387 GB Notification: Performance of SimCode: time 9.22e-07/1.573, allocations: 3.844 kB / 0.9747 GB, free: 218 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1774/1.75, allocations: 116.5 MB / 1.088 GB, free: 109.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.26/27.01, allocations: 4.828 kB / 1.088 GB, free: 109.1 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)