Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.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.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute2,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001411/0.001411, allocations: 114.2 kB / 17.78 MB, free: 5.258 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: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.433/1.433, allocations: 227.4 MB / 247 MB, free: 10.42 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.2306/0.2306, allocations: 46.12 MB / 344.3 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.0022/0.0022, allocations: 75.88 kB / 480.9 MB, free: 4.523 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3268/0.329, allocations: 62.44 MB / 0.5306 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02034/0.3493, allocations: 18.15 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.3627, allocations: 5.298 MB / 0.5535 GB, free: 10.24 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.3664, allocations: 107.8 kB / 0.5536 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006331/0.3728, allocations: 3.044 MB / 0.5566 GB, free: 7.078 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00689/0.3797, allocations: 2.533 MB / 0.5591 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002402/0.3821, allocations: 1.022 MB / 0.5601 GB, free: 3.512 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01152/0.3937, allocations: 7.674 MB / 0.5676 GB, free: 11.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005773/0.3995, allocations: 4.167 MB / 0.5716 GB, free: 7.609 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00389/0.4034, allocations: 2.25 MB / 0.5738 GB, free: 5.352 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005186/0.4086, allocations: 3.221 MB / 0.577 GB, free: 2.121 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001384/0.41, allocations: 452 kB / 0.5774 GB, free: 1.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003041/0.4131, allocations: 1.299 MB / 0.5787 GB, free: 388 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003088/0.4162, allocations: 2.797 MB / 0.5814 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004979/0.4212, allocations: 3.219 MB / 0.5845 GB, free: 10.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01506/0.4363, allocations: 10.08 MB / 0.5944 GB, free: 228 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.4363, allocations: 0 / 0.5944 GB, free: 228 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4363, allocations: 0 / 0.5944 GB, free: 228 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003323/0.4367, allocations: 0 / 0.5944 GB, free: 228 kB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.01893/0.4556, allocations: 7.51 MB / 0.6017 GB, free: 8.613 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.4557, allocations: 8.031 kB / 0.6017 GB, free: 8.605 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001742/0.4574, allocations: 1.014 MB / 0.6027 GB, free: 7.582 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02954/0.487, allocations: 5.644 MB / 0.6082 GB, free: 1.926 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01015/0.4972, allocations: 4.898 MB / 0.613 GB, free: 12.97 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000298/0.4975, allocations: 316.4 kB / 0.6133 GB, free: 12.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001459/0.499, allocations: 435.6 kB / 0.6137 GB, free: 12.23 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02819/0.5272, allocations: 15.53 MB / 0.6289 GB, free: 11.97 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001793/0.5274, allocations: 59.53 kB / 0.629 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006723/0.5281, allocations: 195.8 kB / 0.6291 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006476/0.5346, allocations: 3.38 MB / 0.6324 GB, free: 8.336 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03264/0.5672, allocations: 14.69 MB / 0.6468 GB, free: 9.625 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09595/0.6632, allocations: 54.87 MB / 0.7004 GB, free: 1.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02813/0.6914, allocations: 8.142 MB / 0.7083 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01085/0.7023, allocations: 4.777 MB / 0.713 GB, free: 4.406 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003537/0.7059, allocations: 2.212 MB / 0.7152 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.519e-05/0.706, allocations: 65.08 kB / 0.7152 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 9.628e-06/0.7061, allocations: 0 / 0.7152 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3546/1.061, allocations: 39.68 MB / 0.754 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/1.061, allocations: 123.9 kB / 0.7541 GB, free: 144.1 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004662/1.065, allocations: 4.323 MB / 0.7583 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007454/1.066, allocations: 85.7 kB / 0.7584 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0015/1.068, allocations: 3.966 MB / 0.7623 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001318/1.069, allocations: 1.561 MB / 0.7638 GB, free: 134.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001775/1.071, allocations: 1.528 MB / 0.7653 GB, free: 133.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.147e-05/1.071, allocations: 301.1 kB / 0.7656 GB, free: 132.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004369/1.075, allocations: 3.946 MB / 0.7694 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005758/1.081, allocations: 7.692 MB / 0.7769 GB, free: 119.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01191/1.093, allocations: 12.65 MB / 0.7893 GB, free: 105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.423e-05/1.093, allocations: 36 kB / 0.7893 GB, free: 105 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02324/1.116, allocations: 14.19 MB / 0.8032 GB, free: 90.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.384e-05/1.116, allocations: 63.94 kB / 0.8032 GB, free: 90.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/1.117, allocations: 128 kB / 0.8034 GB, free: 90.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006952/1.124, allocations: 2.678 MB / 0.806 GB, free: 87.89 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006101/1.13, allocations: 1.762 MB / 0.8077 GB, free: 86.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01702/1.147, allocations: 15.23 MB / 0.8226 GB, free: 70.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006538/1.153, allocations: 495.6 kB / 0.823 GB, free: 70.13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001323/1.155, allocations: 423.1 kB / 0.8234 GB, free: 69.72 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (911): * Single equations (assignments): 903 * Array equations: 6 * 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 {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005311/1.16, allocations: 2.87 MB / 0.8262 GB, free: 66.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001176/1.161, allocations: 492.8 kB / 0.8267 GB, free: 66.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01593/1.177, allocations: 10.56 MB / 0.837 GB, free: 55.74 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.994e-05/1.177, allocations: 63.98 kB / 0.8371 GB, free: 55.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.795e-05/1.177, allocations: 8 kB / 0.8371 GB, free: 55.67 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.842e-05/1.177, allocations: 15.94 kB / 0.8371 GB, free: 55.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03185/1.209, allocations: 21.24 MB / 0.8578 GB, free: 34.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.742e-05/1.209, allocations: 16.06 kB / 0.8579 GB, free: 34.22 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003073/1.212, allocations: 0.6786 MB / 0.8585 GB, free: 33.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006688/1.219, allocations: 2.479 MB / 0.8609 GB, free: 31.05 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007612/1.22, allocations: 83.92 kB / 0.861 GB, free: 30.97 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01457/1.234, allocations: 13.83 MB / 0.8745 GB, free: 16.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/1.234, allocations: 15.94 kB / 0.8746 GB, free: 16.84 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02047/1.255, allocations: 15.13 MB / 0.8893 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001155/1.256, allocations: 0.5173 MB / 0.8898 GB, free: 0.8945 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009628/1.257, allocations: 79.98 kB / 0.8899 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003237/1.26, allocations: 302.9 kB / 0.8902 GB, free: 0.5234 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008329/1.261, allocations: 265.9 kB / 0.8905 GB, free: 268 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002867/1.261, allocations: 108 kB / 0.8906 GB, free: 160 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004714/1.266, allocations: 2.719 MB / 0.8932 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.21e-07/1.266, allocations: 0 / 0.8932 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007688/1.274, allocations: 1.613 MB / 0.8948 GB, free: 11.83 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * 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,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02768/1.302, allocations: 15.85 MB / 0.9103 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0186/1.32, allocations: 9.846 MB / 0.9199 GB, free: 1.844 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.035e-05/1.32, allocations: 8.062 kB / 0.9199 GB, free: 1.836 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007422/1.328, allocations: 4.308 MB / 0.9241 GB, free: 13.5 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004476/1.332, allocations: 0.7345 MB / 0.9248 GB, free: 12.78 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.415/1.747, allocations: 70.2 MB / 0.9934 GB, free: 186.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004736/1.752, allocations: 4.542 MB / 0.9978 GB, free: 181.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005396/1.758, allocations: 2.719 MB / 1 GB, free: 179.1 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003589/1.761, allocations: 2.827 MB / 1.003 GB, free: 176.3 MB / 0.6231 GB Notification: Performance of SimCode: time 1.082e-06/1.761, allocations: 0 / 1.003 GB, free: 176.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1585/1.92, allocations: 113 MB / 1.114 GB, free: 63.85 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.53/23.44, allocations: 3.938 kB / 1.114 GB, free: 63.84 MB / 0.6231 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2_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_Joints_Revolute2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1)