Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.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.FrameTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001261/0.001261, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001335/0.001335, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.8 MB, free: 10.58 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.2316/0.2316, allocations: 46.12 MB / 344.2 MB, free: 11.58 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.002396/0.002396, allocations: 88.56 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1453, allocations: 62.45 MB / 480.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.FrameTorques): time 0.01664/0.162, allocations: 12.67 MB / 492.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.1727, allocations: 4.489 MB / 497.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002258/0.175, allocations: 87.75 kB / 497.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007218/0.1823, allocations: 3.711 MB / 0.4894 GB, free: 104 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006898/0.1892, allocations: 2.183 MB / 0.4915 GB, free: 13.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002853/0.1921, allocations: 0.9943 MB / 0.4925 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.2022, allocations: 6.046 MB / 0.4984 GB, free: 6.855 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006355/0.2086, allocations: 4.557 MB / 0.5029 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004068/0.2127, allocations: 1.959 MB / 0.5048 GB, free: 272 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2373/0.45, allocations: 2.602 MB / 0.5073 GB, free: 17.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001976/0.452, allocations: 409.5 kB / 0.5077 GB, free: 17.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003969/0.456, allocations: 1.433 MB / 0.5091 GB, free: 17.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003499/0.4595, allocations: 2.42 MB / 0.5115 GB, free: 17.4 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004991/0.4646, allocations: 2.776 MB / 0.5142 GB, free: 16.43 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.4763, allocations: 8.495 MB / 0.5225 GB, free: 14.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4764, allocations: 0 / 0.5225 GB, free: 14.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4764, allocations: 3.281 kB / 0.5225 GB, free: 14.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003426/0.4767, allocations: 1.188 kB / 0.5225 GB, free: 14.98 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: 1729 * Number of variables: 1729 Notification: Performance of Generate backend data structure: time 0.02164/0.4984, allocations: 6.2 MB / 0.5285 GB, free: 11.71 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.233e-05/0.4985, allocations: 17.39 kB / 0.5286 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003356/0.5018, allocations: 0.8185 MB / 0.5294 GB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03922/0.541, allocations: 6.027 MB / 0.5352 GB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0121/0.5532, allocations: 4.057 MB / 0.5392 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004027/0.5536, allocations: 285.5 kB / 0.5395 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002556/0.5562, allocations: 377 kB / 0.5398 GB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02752/0.5838, allocations: 11.48 MB / 0.5511 GB, free: 11.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003888/0.5842, allocations: 65.02 kB / 0.5511 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002138/0.5864, allocations: 174.9 kB / 0.5513 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004982/0.5914, allocations: 2.149 MB / 0.5534 GB, free: 9.684 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02439/0.6158, allocations: 9.375 MB / 0.5625 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07334/0.6892, allocations: 45.47 MB / 0.6069 GB, free: 2.414 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01148/0.7007, allocations: 3.791 MB / 0.6106 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003646/0.7044, allocations: 2.007 MB / 0.6126 GB, free: 12.46 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01483/0.7192, allocations: 5.639 MB / 0.6181 GB, free: 6.773 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.757e-05/0.7193, allocations: 55.06 kB / 0.6182 GB, free: 6.711 MB / 462.1 MB Notification: Performance of pre-optimization done (n=150): time 6.452e-06/0.7194, allocations: 0 / 0.6182 GB, free: 6.711 MB / 462.1 MB Notification: Performance of matching and sorting (n=162): time 0.04938/0.7687, allocations: 15.57 MB / 0.6334 GB, free: 6.961 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001517/0.7689, allocations: 230.1 kB / 0.6336 GB, free: 6.688 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009809/0.7787, allocations: 5.627 MB / 0.6391 GB, free: 1.082 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004234/0.7792, allocations: 45.7 kB / 0.6391 GB, free: 1.031 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003361/0.7826, allocations: 3.759 MB / 0.6428 GB, free: 13.27 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001067/0.7837, allocations: 0.6537 MB / 0.6434 GB, free: 12.62 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002063/0.7857, allocations: 1.343 MB / 0.6447 GB, free: 11.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.7859, allocations: 301.1 kB / 0.645 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003481/0.7894, allocations: 2.077 MB / 0.6471 GB, free: 8.895 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007327/0.7967, allocations: 6.321 MB / 0.6532 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01263/0.8094, allocations: 9.127 MB / 0.6621 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001526/0.8095, allocations: 44 kB / 0.6622 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of matching and sorting (n=860) (initialization): time 0.02041/0.83, allocations: 8.602 MB / 0.6706 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001798/0.8302, allocations: 72.2 kB / 0.6707 GB, free: 13.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002671/0.8305, allocations: 159.9 kB / 0.6708 GB, free: 13.08 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002211/0.8327, allocations: 0.7205 MB / 0.6715 GB, free: 12.36 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005402/0.8381, allocations: 1.497 MB / 0.673 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00966/0.8478, allocations: 6.969 MB / 0.6798 GB, free: 3.613 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006899/0.8547, allocations: 347.6 kB / 0.6801 GB, free: 3.273 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001755/0.8565, allocations: 408 kB / 0.6805 GB, free: 2.875 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 686 * Number of states: 0 () * Number of discrete variables: 49 (frameTorque2.arrow.twoHeadedArrow,frameTorque2.arrow.headAtOrigin,frameTorque1.arrow.twoHeadedArrow,frameTorque1.arrow.headAtOrigin,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],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.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 (798): * Single equations (assignments): 791 * 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 {(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.00676/0.8633, allocations: 2.455 MB / 0.6829 GB, free: 420 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/0.8648, allocations: 462 kB / 0.6833 GB, free: 15.95 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006323/0.8711, allocations: 2.659 MB / 0.6859 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.332e-05/0.8712, allocations: 16 kB / 0.686 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.8712, allocations: 8 kB / 0.686 GB, free: 13.25 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-05/0.8713, allocations: 8.625 kB / 0.686 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02047/0.8917, allocations: 7.49 MB / 0.6933 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.413e-05/0.8918, allocations: 4 kB / 0.6933 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001412/0.8932, allocations: 251.6 kB / 0.6935 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.8949, allocations: 0.5013 MB / 0.694 GB, free: 4.938 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002341/0.8952, allocations: 28 kB / 0.694 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008701/0.9039, allocations: 6.298 MB / 0.7002 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.9039, allocations: 4 kB / 0.7002 GB, free: 14.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008756/0.9127, allocations: 4.94 MB / 0.705 GB, free: 9.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/0.9147, allocations: 0.5107 MB / 0.7055 GB, free: 8.805 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001366/0.9161, allocations: 39.92 kB / 0.7056 GB, free: 8.766 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002673/0.9188, allocations: 67.92 kB / 0.7056 GB, free: 8.699 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003359/0.9191, allocations: 96.81 kB / 0.7057 GB, free: 8.605 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001452/0.9193, allocations: 54.88 kB / 0.7058 GB, free: 8.555 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008069/0.9274, allocations: 3.606 MB / 0.7093 GB, free: 4.973 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.2e-07/0.9274, allocations: 4 kB / 0.7093 GB, free: 4.969 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006992/0.9344, allocations: 1.086 MB / 0.7104 GB, free: 3.883 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (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 (120): * Single equations (assignments): 115 * 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 {(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.275/1.209, allocations: 5.583 MB / 0.7158 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01048/1.22, allocations: 5.537 MB / 0.7212 GB, free: 189.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.097e-06/1.22, allocations: 1.375 kB / 0.7212 GB, free: 189.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.002268/1.222, allocations: 1.496 MB / 0.7227 GB, free: 189.2 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004208/1.227, allocations: 0.6241 MB / 0.7233 GB, free: 189 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1024/1.329, allocations: 65.46 MB / 0.7872 GB, free: 131 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007307/1.336, allocations: 3.774 MB / 0.7909 GB, free: 127.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006517/1.343, allocations: 2.121 MB / 0.793 GB, free: 125.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005739/1.349, allocations: 2.3 MB / 0.7952 GB, free: 123.3 MB / 0.545 GB Notification: Performance of SimCode: time 1.553e-06/1.349, allocations: 0 / 0.7952 GB, free: 123.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1696/1.518, allocations: 88.75 MB / 0.8819 GB, free: 34.93 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/14.1, allocations: 4.688 kB / 0.8819 GB, free: 34.93 MB / 0.545 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques_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_FrameTorques.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1)