Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.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.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 104.4 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.002226/0.002226, 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.489/1.489, allocations: 227.4 MB / 246.8 MB, free: 10.55 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.23/0.23, allocations: 46.12 MB / 344.2 MB, free: 11.56 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.003929/0.003929, allocations: 84.16 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1355, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.01807/0.1536, allocations: 15 MB / 495.2 MB, free: 6.074 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01103/0.1647, allocations: 5.038 MB / 0.4885 GB, free: 1.02 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002513/0.1673, allocations: 119.7 kB / 0.4886 GB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0123/0.1796, allocations: 5.981 MB / 0.4945 GB, free: 10.9 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009598/0.1893, allocations: 2.731 MB / 0.4971 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004785/0.1941, allocations: 1.571 MB / 0.4987 GB, free: 6.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2377/0.4319, allocations: 7.773 MB / 0.5063 GB, free: 13.13 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01313/0.445, allocations: 7.394 MB / 0.5135 GB, free: 12.1 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007156/0.4522, allocations: 2.969 MB / 0.5164 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007563/0.4598, allocations: 3.778 MB / 0.5201 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002997/0.4629, allocations: 0.5693 MB / 0.5206 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005379/0.4683, allocations: 1.388 MB / 0.522 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006452/0.4748, allocations: 3.461 MB / 0.5254 GB, free: 10.97 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01011/0.4849, allocations: 3.849 MB / 0.5291 GB, free: 8.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01515/0.5001, allocations: 11.26 MB / 0.5401 GB, free: 2.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.5001, allocations: 0 / 0.5401 GB, free: 2.543 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5002, allocations: 3.844 kB / 0.5401 GB, free: 2.543 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005923/0.5007, allocations: 0 / 0.5401 GB, free: 2.543 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2471 * Number of variables: 2471 Notification: Performance of Generate backend data structure: time 0.02514/0.5259, allocations: 8.499 MB / 0.5484 GB, free: 12.54 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.904e-05/0.526, allocations: 8.031 kB / 0.5484 GB, free: 12.54 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004227/0.5302, allocations: 1.174 MB / 0.5496 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01246/0.5427, allocations: 2.52 MB / 0.5521 GB, free: 8.875 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01217/0.5549, allocations: 5.29 MB / 0.5572 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004581/0.5554, allocations: 419.8 kB / 0.5576 GB, free: 3.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002349/0.5578, allocations: 0.5449 MB / 0.5582 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03723/0.595, allocations: 16.68 MB / 0.5744 GB, free: 1.484 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/0.5953, allocations: 76.81 kB / 0.5745 GB, free: 1.441 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001405/0.5967, allocations: 262.1 kB / 0.5748 GB, free: 1.238 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00516/0.6018, allocations: 2.923 MB / 0.5776 GB, free: 14.36 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03127/0.6331, allocations: 12.78 MB / 0.5901 GB, free: 1.871 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09545/0.7286, allocations: 64.3 MB / 0.6529 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01668/0.7454, allocations: 5.375 MB / 0.6581 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003568/0.749, allocations: 2.118 MB / 0.6602 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0187/0.7677, allocations: 9.919 MB / 0.6699 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.193e-05/0.7678, allocations: 58.48 kB / 0.6699 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=182): time 5.971e-06/0.7678, allocations: 0 / 0.6699 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of matching and sorting (n=206): time 0.039/0.8068, allocations: 13.98 MB / 0.6836 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.807, allocations: 149.8 kB / 0.6837 GB, free: 0.5156 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01003/0.817, allocations: 6.322 MB / 0.6899 GB, free: 10.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0003669/0.8174, allocations: 52.52 kB / 0.69 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004268/0.8217, allocations: 5.089 MB / 0.6949 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000987/0.8227, allocations: 0.8144 MB / 0.6957 GB, free: 4.246 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002119/0.8248, allocations: 1.656 MB / 0.6973 GB, free: 2.582 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001214/0.8249, allocations: 301.1 kB / 0.6976 GB, free: 2.285 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003653/0.8286, allocations: 2.296 MB / 0.6999 GB, free: 15.98 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008237/0.8368, allocations: 7.631 MB / 0.7073 GB, free: 5.762 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2364/1.073, allocations: 10.81 MB / 0.7179 GB, free: 174.6 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001802/1.074, allocations: 54.81 kB / 0.7179 GB, free: 174.6 MB / 0.545 GB Notification: Performance of matching and sorting (n=1091) (initialization): time 0.01946/1.093, allocations: 9.56 MB / 0.7273 GB, free: 171.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001632/1.093, allocations: 91.44 kB / 0.7274 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003709/1.094, allocations: 190.4 kB / 0.7275 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003875/1.094, allocations: 249.1 kB / 0.7278 GB, free: 171.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006518/1.101, allocations: 1.902 MB / 0.7296 GB, free: 171.6 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000322/1.101, allocations: 372 kB / 0.73 GB, free: 171.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005946/1.107, allocations: 411.7 kB / 0.7304 GB, free: 171.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00102/1.108, allocations: 0.5104 MB / 0.7309 GB, free: 171.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 867 * Number of states: 0 () * Number of discrete variables: 68 (cutTorque2b.torqueArrow.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque1b.torqueArrow.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque2a.torqueArrow.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque1a.torqueArrow.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1027): * Single equations (assignments): 1016 * Array equations: 11 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006206/1.114, allocations: 3.29 MB / 0.7341 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009993/1.115, allocations: 0.5277 MB / 0.7346 GB, free: 170 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001178/1.116, allocations: 0.6281 MB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.349e-05/1.116, allocations: 21.53 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/1.116, allocations: 1.875 kB / 0.7352 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/1.116, allocations: 10.11 kB / 0.7353 GB, free: 169.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02252/1.139, allocations: 14.99 MB / 0.7499 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.304e-05/1.139, allocations: 49.41 kB / 0.7499 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001303/1.14, allocations: 445.6 kB / 0.7504 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-05/1.14, allocations: 66.03 kB / 0.7504 GB, free: 163.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/1.141, allocations: 111.1 kB / 0.7505 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.956e-05/1.141, allocations: 89.02 kB / 0.7506 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.643e-05/1.141, allocations: 74.69 kB / 0.7507 GB, free: 163.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003901/1.145, allocations: 4.297 MB / 0.7549 GB, free: 160.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.146, allocations: 0.6246 MB / 0.7555 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007542/1.147, allocations: 117.8 kB / 0.7556 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002062/1.149, allocations: 109.8 kB / 0.7557 GB, free: 159.9 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003219/1.149, allocations: 312.6 kB / 0.756 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001638/1.149, allocations: 132.6 kB / 0.7561 GB, free: 159.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00669/1.156, allocations: 3.95 MB / 0.76 GB, free: 158.3 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.8e-07/1.156, allocations: 0 / 0.76 GB, free: 158.3 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00871/1.165, allocations: 1.303 MB / 0.7613 GB, free: 157 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 211 * Number of states: 0 () * 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 (238): * Single equations (assignments): 235 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004731/1.17, allocations: 5.036 MB / 0.7662 GB, free: 151.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008027/1.178, allocations: 5.497 MB / 0.7716 GB, free: 146.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.033e-05/1.178, allocations: 8 kB / 0.7716 GB, free: 146.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001672/1.179, allocations: 1.198 MB / 0.7727 GB, free: 145.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006091/1.185, allocations: 0.8948 MB / 0.7736 GB, free: 144.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0852/1.271, allocations: 78.87 MB / 0.8506 GB, free: 54.57 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007483/1.278, allocations: 5.078 MB / 0.8556 GB, free: 49.46 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006523/1.285, allocations: 2.538 MB / 0.8581 GB, free: 46.92 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004337/1.289, allocations: 3.295 MB / 0.8613 GB, free: 43.62 MB / 0.545 GB Notification: Performance of SimCode: time 1.362e-06/1.289, allocations: 4 kB / 0.8613 GB, free: 43.62 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3854/1.675, allocations: 98.16 MB / 0.9571 GB, free: 180.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/12.73, allocations: 13.41 kB / 0.9572 GB, free: 180.1 MB / 0.5606 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque_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_Sensors_CutTorque.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1)