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.001212/0.001212, allocations: 122.8 kB / 17.79 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.001489/0.001489, allocations: 201.2 kB / 18.74 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.47/1.47, allocations: 227.4 MB / 247 MB, free: 10.5 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.2334/0.2334, 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.002315/0.002315, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3872/0.3896, 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.02684/0.4164, allocations: 18.15 MB / 0.5483 GB, free: 15.12 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01488/0.4314, allocations: 5.295 MB / 0.5535 GB, free: 10.21 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005168/0.4366, allocations: 107.7 kB / 0.5536 GB, free: 10.1 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007081/0.4438, allocations: 3.048 MB / 0.5566 GB, free: 7.043 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009409/0.4532, allocations: 2.544 MB / 0.5591 GB, free: 4.492 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003104/0.4564, allocations: 1.018 MB / 0.5601 GB, free: 3.473 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01241/0.4688, allocations: 7.668 MB / 0.5676 GB, free: 11.79 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006809/0.4757, allocations: 4.175 MB / 0.5716 GB, free: 7.566 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004906/0.4806, allocations: 2.243 MB / 0.5738 GB, free: 5.316 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00581/0.4865, allocations: 3.232 MB / 0.577 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001959/0.4885, allocations: 452 kB / 0.5774 GB, free: 1.633 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004197/0.4927, allocations: 1.291 MB / 0.5787 GB, free: 348 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005226/0.498, allocations: 2.801 MB / 0.5814 GB, free: 13.53 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007531/0.5055, allocations: 3.215 MB / 0.5845 GB, free: 10.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01598/0.5216, allocations: 10.07 MB / 0.5944 GB, free: 192 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.051e-05/0.5216, allocations: 4 kB / 0.5944 GB, free: 188 kB / 446.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5216, allocations: 0 / 0.5944 GB, free: 188 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003872/0.522, allocations: 4 kB / 0.5944 GB, free: 184 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.02233/0.5444, allocations: 7.506 MB / 0.6017 GB, free: 8.574 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.5444, allocations: 12.03 kB / 0.6017 GB, free: 8.562 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003934/0.5484, allocations: 1.006 MB / 0.6027 GB, free: 7.547 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03065/0.5791, allocations: 5.656 MB / 0.6082 GB, free: 1.879 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.5906, allocations: 4.891 MB / 0.613 GB, free: 12.93 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003113/0.591, allocations: 316.4 kB / 0.6133 GB, free: 12.62 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001907/0.5929, allocations: 443.6 kB / 0.6137 GB, free: 12.18 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02985/0.6228, allocations: 15.53 MB / 0.6289 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002515/0.6231, allocations: 63.53 kB / 0.629 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001093/0.6242, allocations: 199.8 kB / 0.6291 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007228/0.6314, allocations: 3.388 MB / 0.6325 GB, free: 8.281 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03292/0.6644, allocations: 14.68 MB / 0.6468 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09117/0.7556, allocations: 54.88 MB / 0.7004 GB, free: 1.523 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01919/0.7749, allocations: 8.146 MB / 0.7083 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007312/0.7822, allocations: 4.769 MB / 0.713 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002377/0.7846, allocations: 2.212 MB / 0.7152 GB, free: 1.762 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.175e-05/0.7847, allocations: 69.08 kB / 0.7152 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.622e-06/0.7847, allocations: 0 / 0.7152 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.4763/1.261, allocations: 39.67 MB / 0.754 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/1.261, allocations: 120 kB / 0.7541 GB, free: 144 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008183/1.269, allocations: 4.328 MB / 0.7583 GB, free: 139.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001024/1.27, allocations: 85.7 kB / 0.7584 GB, free: 139.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001762/1.272, allocations: 3.964 MB / 0.7623 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001554/1.274, allocations: 1.556 MB / 0.7638 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002145/1.276, allocations: 1.528 MB / 0.7653 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.427e-05/1.276, allocations: 301.1 kB / 0.7656 GB, free: 132.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004677/1.281, allocations: 3.946 MB / 0.7694 GB, free: 128.9 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006485/1.287, allocations: 7.694 MB / 0.7769 GB, free: 119.4 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01277/1.3, allocations: 12.65 MB / 0.7893 GB, free: 105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.976e-05/1.3, allocations: 36 kB / 0.7893 GB, free: 104.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1008) (initialization): time 0.02423/1.324, allocations: 14.19 MB / 0.8032 GB, free: 90.69 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.472e-05/1.325, allocations: 66.75 kB / 0.8032 GB, free: 90.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001056/1.325, allocations: 128 kB / 0.8034 GB, free: 90.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006816/1.331, allocations: 2.675 MB / 0.806 GB, free: 87.82 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005814/1.337, allocations: 1.758 MB / 0.8077 GB, free: 86.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/1.353, allocations: 15.24 MB / 0.8226 GB, free: 70.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006184/1.36, allocations: 499.4 kB / 0.823 GB, free: 70.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001547/1.361, allocations: 423.9 kB / 0.8234 GB, free: 69.65 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.005445/1.367, allocations: 2.864 MB / 0.8262 GB, free: 66.77 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/1.368, allocations: 485.9 kB / 0.8267 GB, free: 66.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0162/1.384, allocations: 10.57 MB / 0.837 GB, free: 55.68 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.813e-05/1.384, allocations: 63.98 kB / 0.8371 GB, free: 55.61 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.137e-05/1.384, allocations: 8 kB / 0.8371 GB, free: 55.61 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.947e-05/1.384, allocations: 19.94 kB / 0.8371 GB, free: 55.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03361/1.418, allocations: 21.23 MB / 0.8578 GB, free: 34.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.056e-05/1.418, allocations: 16.25 kB / 0.8579 GB, free: 34.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003181/1.421, allocations: 0.6825 MB / 0.8585 GB, free: 33.47 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00671/1.428, allocations: 2.479 MB / 0.8609 GB, free: 30.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000787/1.429, allocations: 80.09 kB / 0.861 GB, free: 30.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01469/1.443, allocations: 13.83 MB / 0.8745 GB, free: 16.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/1.443, allocations: 20 kB / 0.8745 GB, free: 16.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02099/1.464, allocations: 15.15 MB / 0.8893 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/1.466, allocations: 0.5134 MB / 0.8898 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001124/1.467, allocations: 72 kB / 0.8899 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002825/1.47, allocations: 303.5 kB / 0.8902 GB, free: 464 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000798/1.47, allocations: 265.9 kB / 0.8905 GB, free: 196 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002908/1.471, allocations: 112 kB / 0.8906 GB, free: 84 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00459/1.475, allocations: 2.714 MB / 0.8932 GB, free: 13.37 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.475, allocations: 3.938 kB / 0.8932 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007935/1.483, allocations: 1.613 MB / 0.8948 GB, free: 11.75 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.03086/1.514, allocations: 15.85 MB / 0.9103 GB, free: 11.63 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01817/1.532, allocations: 9.846 MB / 0.9199 GB, free: 1.77 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.75e-05/1.532, allocations: 4.25 kB / 0.9199 GB, free: 1.766 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.008073/1.54, allocations: 4.312 MB / 0.9241 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005043/1.546, allocations: 0.7356 MB / 0.9248 GB, free: 12.71 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4217/1.967, allocations: 70.21 MB / 0.9934 GB, free: 186.4 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004886/1.972, allocations: 4.542 MB / 0.9978 GB, free: 181.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.005322/1.978, 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.004012/1.982, allocations: 2.823 MB / 1.003 GB, free: 176.3 MB / 0.6231 GB Notification: Performance of SimCode: time 9.01e-07/1.982, allocations: 0 / 1.003 GB, free: 176.3 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1628/2.144, allocations: 113 MB / 1.114 GB, free: 63.86 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.98/24.13, allocations: 7.062 kB / 1.114 GB, free: 63.86 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute2.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1)