Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.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.WorldTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.WorldTorques,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_WorldTorques",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001341/0.001341, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 247 MB, free: 10.43 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.2243/0.2243, allocations: 46.11 MB / 344.4 MB, free: 11.44 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.003048/0.003048, allocations: 75.88 kB / 480.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3577/0.3607, allocations: 62.45 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.WorldTorques): time 0.01903/0.3798, allocations: 15.4 MB / 0.5457 GB, free: 1.242 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01268/0.3925, allocations: 5.056 MB / 0.5506 GB, free: 13.14 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003514/0.3961, allocations: 111.7 kB / 0.5507 GB, free: 13.04 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009756/0.4059, allocations: 4.984 MB / 0.5556 GB, free: 8.035 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007873/0.4138, allocations: 2.513 MB / 0.558 GB, free: 5.516 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003456/0.4173, allocations: 1.244 MB / 0.5592 GB, free: 4.27 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.43, allocations: 7.966 MB / 0.567 GB, free: 12.29 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008176/0.4382, allocations: 5.979 MB / 0.5728 GB, free: 6.219 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005562/0.4438, allocations: 2.516 MB / 0.5753 GB, free: 3.695 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006864/0.4507, allocations: 3.45 MB / 0.5787 GB, free: 240 kB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002454/0.4532, allocations: 0.5352 MB / 0.5792 GB, free: 15.7 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004982/0.4582, allocations: 1.549 MB / 0.5807 GB, free: 14.15 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005131/0.4634, allocations: 3.137 MB / 0.5838 GB, free: 11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00677/0.4702, allocations: 3.562 MB / 0.5873 GB, free: 7.422 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01714/0.4874, allocations: 11.07 MB / 0.5981 GB, free: 12.3 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.235e-06/0.4875, allocations: 4 kB / 0.5981 GB, free: 12.3 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4875, allocations: 0 / 0.5981 GB, free: 12.3 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000399/0.4879, allocations: 4 kB / 0.5981 GB, free: 12.3 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: 2128 * Number of variables: 2128 Notification: Performance of Generate backend data structure: time 0.02168/0.5096, allocations: 8.002 MB / 0.6059 GB, free: 4.199 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.35e-05/0.5096, allocations: 12.03 kB / 0.6059 GB, free: 4.188 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003001/0.5126, allocations: 1.016 MB / 0.6069 GB, free: 3.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05695/0.5696, allocations: 8.324 MB / 0.615 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.012/0.5816, allocations: 5.454 MB / 0.6203 GB, free: 5.289 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00032/0.582, allocations: 365.7 kB / 0.6207 GB, free: 4.93 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.5835, allocations: 495.6 kB / 0.6212 GB, free: 4.445 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02834/0.6119, allocations: 14.09 MB / 0.6349 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002736/0.6122, allocations: 79.41 kB / 0.635 GB, free: 5.254 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001198/0.6134, allocations: 231.8 kB / 0.6352 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00466/0.6181, allocations: 2.539 MB / 0.6377 GB, free: 2.484 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02565/0.6438, allocations: 11.45 MB / 0.6489 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07293/0.7167, allocations: 55.26 MB / 0.7028 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/0.7289, allocations: 4.463 MB / 0.7072 GB, free: 9.699 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004046/0.733, allocations: 2.711 MB / 0.7098 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001232/0.7332, allocations: 37.64 kB / 0.7099 GB, free: 6.938 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.817e-05/0.7332, allocations: 59.5 kB / 0.7099 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=186): time 5.01e-06/0.7333, allocations: 0 / 0.7099 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of matching and sorting (n=204): time 0.3452/1.078, allocations: 20.78 MB / 0.7302 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/1.079, allocations: 255.6 kB / 0.7305 GB, free: 156.8 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009075/1.088, allocations: 6.704 MB / 0.737 GB, free: 154.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000454/1.088, allocations: 57.17 kB / 0.7371 GB, free: 154.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.002657/1.091, allocations: 4.719 MB / 0.7417 GB, free: 151.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009509/1.092, allocations: 0.8433 MB / 0.7425 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00165/1.094, allocations: 1.568 MB / 0.744 GB, free: 150 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.459e-05/1.094, allocations: 306.7 kB / 0.7443 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002928/1.097, allocations: 2.566 MB / 0.7468 GB, free: 148.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004512/1.101, allocations: 7.44 MB / 0.7541 GB, free: 140.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008298/1.109, allocations: 10.86 MB / 0.7647 GB, free: 127.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001128/1.11, allocations: 48 kB / 0.7648 GB, free: 127.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=996) (initialization): time 0.01599/1.126, allocations: 10.48 MB / 0.775 GB, free: 116.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.681e-05/1.126, allocations: 80 kB / 0.7751 GB, free: 116.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000144/1.126, allocations: 172 kB / 0.7752 GB, free: 116.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002142/1.128, allocations: 1.017 MB / 0.7762 GB, free: 115.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004775/1.133, allocations: 1.754 MB / 0.7779 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008775/1.142, allocations: 10.36 MB / 0.7881 GB, free: 102.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006441/1.148, allocations: 413.8 kB / 0.7884 GB, free: 102.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001139/1.149, allocations: 479.5 kB / 0.7889 GB, free: 102 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 786 * Number of states: 0 () * Number of discrete variables: 63 (worldTorque3.arrow.twoHeadedArrow,worldTorque3.arrow.headAtOrigin,worldTorque2.arrow.twoHeadedArrow,worldTorque2.arrow.headAtOrigin,worldTorque1.arrow.twoHeadedArrow,worldTorque1.arrow.headAtOrigin,worldTorque3.color[3],worldTorque3.color[2],worldTorque3.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],BodyCylinder3.color[3],BodyCylinder3.color[2],BodyCylinder3.color[1],BodyCylinder3.body.sphereColor[3],BodyCylinder3.body.sphereColor[2],BodyCylinder3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],worldTorque2.color[3],worldTorque2.color[2],worldTorque2.color[1],BodyCylinder1.color[3],BodyCylinder1.color[2],BodyCylinder1.color[1],BodyCylinder1.body.sphereColor[3],BodyCylinder1.body.sphereColor[2],BodyCylinder1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],worldTorque1.color[3],worldTorque1.color[2],worldTorque1.color[1],BodyCylinder2.color[3],BodyCylinder2.color[2],BodyCylinder2.color[1],BodyCylinder2.body.sphereColor[3],BodyCylinder2.body.sphereColor[2],BodyCylinder2.body.sphereColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],fixed2.color[3],fixed2.color[2],fixed2.color[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 (930): * Single equations (assignments): 924 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.004183/1.153, allocations: 2.967 MB / 0.7918 GB, free: 99.03 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/1.155, allocations: 0.5859 MB / 0.7924 GB, free: 98.44 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005491/1.16, allocations: 3.754 MB / 0.796 GB, free: 94.66 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.818e-05/1.16, allocations: 24 kB / 0.7961 GB, free: 94.63 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.42e-05/1.16, allocations: 11.94 kB / 0.7961 GB, free: 94.62 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/1.16, allocations: 7.969 kB / 0.7961 GB, free: 94.61 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/1.174, allocations: 9.977 MB / 0.8058 GB, free: 84.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/1.174, allocations: 4 kB / 0.8058 GB, free: 84.61 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001387/1.176, allocations: 323.5 kB / 0.8061 GB, free: 84.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001766/1.177, allocations: 0.7361 MB / 0.8069 GB, free: 83.54 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001509/1.177, allocations: 39.98 kB / 0.8069 GB, free: 83.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007731/1.185, allocations: 9.449 MB / 0.8161 GB, free: 73.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/1.185, allocations: 0 / 0.8161 GB, free: 73.64 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008411/1.194, allocations: 6.61 MB / 0.8226 GB, free: 67 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001646/1.195, allocations: 0.6376 MB / 0.8232 GB, free: 66.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008309/1.196, allocations: 36.06 kB / 0.8232 GB, free: 66.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/1.198, allocations: 123.8 kB / 0.8233 GB, free: 66.18 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003533/1.198, allocations: 129.2 kB / 0.8235 GB, free: 66.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001288/1.199, allocations: 55.98 kB / 0.8235 GB, free: 66 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005358/1.204, allocations: 4.279 MB / 0.8277 GB, free: 61.74 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/1.204, allocations: 3.938 kB / 0.8277 GB, free: 61.73 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006418/1.21, allocations: 1.368 MB / 0.829 GB, free: 60.37 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute1.phi,Revolute1.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 (153): * Single equations (assignments): 147 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.007927/1.218, allocations: 7.276 MB / 0.8361 GB, free: 53.06 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.008674/1.227, allocations: 6.531 MB / 0.8425 GB, free: 46.54 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/1.227, allocations: 0 / 0.8425 GB, free: 46.54 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00235/1.229, allocations: 2.093 MB / 0.8446 GB, free: 44.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004588/1.234, allocations: 0.8015 MB / 0.8454 GB, free: 43.61 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1013/1.335, allocations: 66.46 MB / 0.9103 GB, free: 1.66 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007767/1.343, allocations: 4.531 MB / 0.9147 GB, free: 13.11 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.006311/1.349, allocations: 2.484 MB / 0.9171 GB, free: 10.62 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005082/1.355, allocations: 2.92 MB / 0.92 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of SimCode: time 7.42e-07/1.355, allocations: 4 kB / 0.92 GB, free: 7.691 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4484/1.803, allocations: 106.2 MB / 1.024 GB, free: 177.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.39/25.2, allocations: 4.062 kB / 1.024 GB, free: 177.6 MB / 0.6387 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques_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_WorldTorques.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.WorldTorques.pipe 2>&1)