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.001737/0.001737, allocations: 122.1 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.002096/0.002096, allocations: 202 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.408/1.408, 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.2187/0.2187, allocations: 46.12 MB / 344.4 MB, free: 11.48 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.002184/0.002184, allocations: 83.86 kB / 480.9 MB, free: 4.531 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.32, allocations: 62.44 MB / 0.5306 GB, free: 13.4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.01805/0.3381, allocations: 15.52 MB / 0.5458 GB, free: 1.207 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01125/0.3494, allocations: 4.929 MB / 0.5506 GB, free: 13.25 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.352, allocations: 107.7 kB / 0.5507 GB, free: 13.15 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009207/0.3612, allocations: 4.984 MB / 0.5556 GB, free: 8.148 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007223/0.3685, allocations: 2.477 MB / 0.558 GB, free: 5.664 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002593/0.3711, allocations: 1.068 MB / 0.559 GB, free: 4.594 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01097/0.3821, allocations: 6.86 MB / 0.5657 GB, free: 13.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007666/0.3898, allocations: 5.758 MB / 0.5713 GB, free: 7.883 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004001/0.3938, allocations: 2.379 MB / 0.5737 GB, free: 5.496 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004981/0.3988, allocations: 3.201 MB / 0.5768 GB, free: 2.285 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00134/0.4002, allocations: 0.4961 MB / 0.5773 GB, free: 1.789 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003028/0.4033, allocations: 1.385 MB / 0.5786 GB, free: 412 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003173/0.4064, allocations: 2.985 MB / 0.5815 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00446/0.4109, allocations: 3.398 MB / 0.5849 GB, free: 9.988 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.4239, allocations: 10.51 MB / 0.5951 GB, free: 15.44 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4239, allocations: 0 / 0.5951 GB, free: 15.44 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.424, allocations: 0 / 0.5951 GB, free: 15.44 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003127/0.4243, allocations: 0 / 0.5951 GB, free: 15.44 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.0179/0.4422, allocations: 7.772 MB / 0.6027 GB, free: 7.566 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.4422, allocations: 8.031 kB / 0.6027 GB, free: 7.559 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001771/0.444, allocations: 1.021 MB / 0.6037 GB, free: 6.527 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04023/0.4843, allocations: 6.23 MB / 0.6098 GB, free: 292 kB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01023/0.4945, allocations: 4.681 MB / 0.6144 GB, free: 11.52 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/0.4949, allocations: 361.3 kB / 0.6147 GB, free: 11.17 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001426/0.4963, allocations: 483.7 kB / 0.6152 GB, free: 10.7 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02635/0.5227, allocations: 14.12 MB / 0.629 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002009/0.5229, allocations: 63.47 kB / 0.629 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006798/0.5236, allocations: 231.8 kB / 0.6292 GB, free: 11.27 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004925/0.5286, allocations: 2.703 MB / 0.6319 GB, free: 8.562 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02508/0.5537, allocations: 11.79 MB / 0.6434 GB, free: 12.74 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07417/0.6279, allocations: 56.92 MB / 0.699 GB, free: 2.363 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01564/0.6436, allocations: 6.156 MB / 0.705 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004874/0.6485, allocations: 3.59 MB / 0.7085 GB, free: 8.438 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2489/0.8974, allocations: 8.306 MB / 0.7166 GB, free: 163 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.491e-05/0.8975, allocations: 58.38 kB / 0.7167 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=236): time 6.111e-06/0.8976, allocations: 0.5625 kB / 0.7167 GB, free: 162.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=278): time 0.06593/0.9635, allocations: 29.18 MB / 0.7452 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.458e-05/0.9636, allocations: 239.4 kB / 0.7454 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007445/0.9711, allocations: 6.709 MB / 0.752 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0005664/0.9716, allocations: 65.7 kB / 0.752 GB, free: 144.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002074/0.9737, allocations: 4.638 MB / 0.7565 GB, free: 140.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009542/0.9747, allocations: 1.101 MB / 0.7576 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001714/0.9764, allocations: 1.73 MB / 0.7593 GB, free: 137.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.018e-05/0.9765, allocations: 301.1 kB / 0.7596 GB, free: 137.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003599/0.9801, allocations: 3.358 MB / 0.7629 GB, free: 133.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005091/0.9852, allocations: 8.398 MB / 0.7711 GB, free: 123 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009963/0.9952, allocations: 12.75 MB / 0.7835 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.738e-05/0.9953, allocations: 52 kB / 0.7836 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.01936/1.015, allocations: 13.06 MB / 0.7963 GB, free: 94.66 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.956e-05/1.015, allocations: 84 kB / 0.7964 GB, free: 94.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001512/1.015, allocations: 176 kB / 0.7966 GB, free: 94.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00406/1.019, allocations: 1.782 MB / 0.7983 GB, free: 92.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006042/1.025, allocations: 1.949 MB / 0.8002 GB, free: 90.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/1.038, allocations: 12.86 MB / 0.8128 GB, free: 77.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006814/1.044, allocations: 495.4 kB / 0.8133 GB, free: 77.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/1.046, allocations: 0.4999 MB / 0.8137 GB, free: 76.54 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.004575/1.05, allocations: 2.988 MB / 0.8167 GB, free: 73.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001094/1.052, allocations: 0.5859 MB / 0.8172 GB, free: 72.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009673/1.061, allocations: 6.354 MB / 0.8234 GB, free: 66.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.389e-05/1.061, allocations: 31.44 kB / 0.8235 GB, free: 66.55 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.129e-05/1.061, allocations: 15.94 kB / 0.8235 GB, free: 66.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.709e-05/1.061, allocations: 15.94 kB / 0.8235 GB, free: 66.52 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02084/1.082, allocations: 13.98 MB / 0.8372 GB, free: 52.49 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.863e-05/1.082, allocations: 4 kB / 0.8372 GB, free: 52.49 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002178/1.084, allocations: 451.3 kB / 0.8376 GB, free: 52.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003644/1.088, allocations: 1.539 MB / 0.8391 GB, free: 50.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003796/1.089, allocations: 55.92 kB / 0.8391 GB, free: 50.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0124/1.101, allocations: 12.18 MB / 0.851 GB, free: 38 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.7e-06/1.101, allocations: 15.88 kB / 0.8511 GB, free: 37.99 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01283/1.114, allocations: 10.35 MB / 0.8612 GB, free: 27.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001529/1.115, allocations: 0.6609 MB / 0.8618 GB, free: 26.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001025/1.116, allocations: 55.98 kB / 0.8619 GB, free: 26.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002572/1.119, allocations: 183.7 kB / 0.862 GB, free: 26.59 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005612/1.12, allocations: 169.6 kB / 0.8622 GB, free: 26.42 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001987/1.12, allocations: 72 kB / 0.8623 GB, free: 26.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.006163/1.126, allocations: 4.302 MB / 0.8665 GB, free: 22.06 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.01e-07/1.126, allocations: 480 / 0.8665 GB, free: 22.06 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007313/1.133, allocations: 1.523 MB / 0.868 GB, free: 20.54 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.01359/1.147, allocations: 11.03 MB / 0.8787 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01145/1.158, allocations: 8.293 MB / 0.8868 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.265e-05/1.159, allocations: 4 kB / 0.8868 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.005906/1.164, allocations: 3.25 MB / 0.89 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005021/1.169, allocations: 0.7431 MB / 0.8907 GB, free: 13.05 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3801/1.55, allocations: 75.72 MB / 0.9647 GB, free: 220.8 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004762/1.554, allocations: 4.531 MB / 0.9691 GB, free: 219.9 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.005535/1.56, allocations: 2.771 MB / 0.9718 GB, free: 219.9 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003838/1.564, allocations: 2.943 MB / 0.9747 GB, free: 217.9 MB / 0.6387 GB Notification: Performance of SimCode: time 9.02e-07/1.564, allocations: 0 / 0.9747 GB, free: 217.9 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1583/1.722, allocations: 116.5 MB / 1.088 GB, free: 109.1 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 25/26.72, allocations: 4.891 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_Torque.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1)