Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.Revolute,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Joints_Revolute",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001654/0.001654, allocations: 118.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.001938/0.001938, allocations: 198 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.481/1.481, 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.2165/0.2165, allocations: 46.12 MB / 344.4 MB, free: 11.45 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.002291/0.002291, allocations: 75.88 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3418, allocations: 62.44 MB / 0.5306 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01484/0.3567, allocations: 12.28 MB / 0.5426 GB, free: 3.957 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01032/0.3671, allocations: 3.938 MB / 0.5464 GB, free: 0.918 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002652/0.3698, allocations: 60.62 kB / 0.5465 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003326/0.3732, allocations: 1.315 MB / 0.5478 GB, free: 8 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004874/0.3781, allocations: 1.722 MB / 0.5495 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.3795, allocations: 499 kB / 0.5499 GB, free: 14.01 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005585/0.3851, allocations: 3.613 MB / 0.5535 GB, free: 10.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003095/0.3883, allocations: 2.005 MB / 0.5554 GB, free: 8.348 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002132/0.3904, allocations: 1.183 MB / 0.5566 GB, free: 7.16 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002758/0.3932, allocations: 1.709 MB / 0.5582 GB, free: 5.445 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009103/0.3942, allocations: 240 kB / 0.5585 GB, free: 5.211 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002587/0.3968, allocations: 0.9361 MB / 0.5594 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002168/0.399, allocations: 1.574 MB / 0.5609 GB, free: 2.695 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003363/0.4024, allocations: 1.882 MB / 0.5628 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009123/0.4115, allocations: 6.204 MB / 0.5688 GB, free: 10.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.908e-06/0.4116, allocations: 3.984 kB / 0.5688 GB, free: 10.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.4116, allocations: 0 / 0.5688 GB, free: 10.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002003/0.4118, allocations: 0 / 0.5688 GB, free: 10.57 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.009405/0.4212, allocations: 4.253 MB / 0.573 GB, free: 6.242 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/0.4213, allocations: 8.031 kB / 0.573 GB, free: 6.234 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001788/0.4231, allocations: 0.716 MB / 0.5737 GB, free: 5.508 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01125/0.4344, allocations: 3.11 MB / 0.5767 GB, free: 2.391 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004754/0.4392, allocations: 2.096 MB / 0.5788 GB, free: 252 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.4394, allocations: 193 kB / 0.579 GB, free: 56 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/0.4407, allocations: 247.7 kB / 0.5792 GB, free: 15.81 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02012/0.4608, allocations: 10.49 MB / 0.5894 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/0.461, allocations: 23.81 kB / 0.5895 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00112/0.4622, allocations: 115.8 kB / 0.5896 GB, free: 4.754 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005017/0.4672, allocations: 2.557 MB / 0.5921 GB, free: 2.191 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02135/0.4886, allocations: 9.923 MB / 0.6018 GB, free: 8.258 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05596/0.5446, allocations: 34.35 MB / 0.6353 GB, free: 5.082 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01026/0.5549, allocations: 5.174 MB / 0.6404 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003763/0.5587, allocations: 2.291 MB / 0.6426 GB, free: 13.39 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002024/0.5608, allocations: 1.88 MB / 0.6444 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.587e-05/0.5609, allocations: 58.2 kB / 0.6445 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 8.005e-06/0.5609, allocations: 0 / 0.6445 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.03661/0.5975, allocations: 14.06 MB / 0.6582 GB, free: 13 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.22e-05/0.5976, allocations: 73.41 kB / 0.6583 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004586/0.6022, allocations: 2.636 MB / 0.6609 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0004109/0.6026, allocations: 53.7 kB / 0.6609 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002375/0.605, allocations: 2.749 MB / 0.6636 GB, free: 7.422 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001255/0.6063, allocations: 0.8875 MB / 0.6645 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00237/0.6087, allocations: 1.041 MB / 0.6655 GB, free: 5.477 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.6088, allocations: 305.1 kB / 0.6658 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003885/0.6127, allocations: 2.196 MB / 0.6679 GB, free: 2.973 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006992/0.6198, allocations: 5.059 MB / 0.6729 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/0.6312, allocations: 7.965 MB / 0.6806 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001107/0.6313, allocations: 28 kB / 0.6807 GB, free: 3.113 MB / 0.5294 GB Notification: Performance of matching and sorting (n=691) (initialization): time 0.01648/0.6478, allocations: 7.873 MB / 0.6883 GB, free: 11.23 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001258/0.648, allocations: 48.94 kB / 0.6884 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001723/0.6482, allocations: 100 kB / 0.6885 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002453/0.6506, allocations: 0.7928 MB / 0.6893 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004216/0.6549, allocations: 1.185 MB / 0.6904 GB, free: 9.102 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006546/0.6614, allocations: 4.52 MB / 0.6948 GB, free: 4.445 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003429/0.6649, allocations: 303.8 kB / 0.6951 GB, free: 4.148 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009629/0.6659, allocations: 296 kB / 0.6954 GB, free: 3.859 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (631): * Single equations (assignments): 624 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0042/0.6701, allocations: 2.024 MB / 0.6974 GB, free: 1.824 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000693/0.6708, allocations: 274.1 kB / 0.6976 GB, free: 1.555 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009465/0.6803, allocations: 4.725 MB / 0.7023 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.152e-05/0.6804, allocations: 43.94 kB / 0.7023 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.423e-05/0.6805, allocations: 7.938 kB / 0.7023 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.545e-05/0.6805, allocations: 11.95 kB / 0.7023 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02225/0.7027, allocations: 10.5 MB / 0.7126 GB, free: 2.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.681e-05/0.7028, allocations: 16.83 kB / 0.7126 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001802/0.7046, allocations: 351.5 kB / 0.7129 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002263/0.7069, allocations: 0.6599 MB / 0.7136 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00043/0.7074, allocations: 47.98 kB / 0.7136 GB, free: 0.9961 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005771/0.7132, allocations: 3.899 MB / 0.7174 GB, free: 12.96 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.129e-05/0.7132, allocations: 11.94 kB / 0.7174 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01255/0.7258, allocations: 7.153 MB / 0.7244 GB, free: 5.68 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000707/0.7265, allocations: 327.2 kB / 0.7247 GB, free: 5.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007488/0.7273, allocations: 36 kB / 0.7248 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001631/0.7289, allocations: 139.8 kB / 0.7249 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005783/0.7296, allocations: 145 kB / 0.725 GB, free: 5.023 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003359/0.7299, allocations: 64 kB / 0.7251 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003135/0.7331, allocations: 1.623 MB / 0.7267 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.81e-07/0.7331, allocations: 0 / 0.7267 GB, free: 3.328 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004842/0.7379, allocations: 0.9062 MB / 0.7276 GB, free: 2.422 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2726/1.011, allocations: 7.794 MB / 0.7352 GB, free: 176.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.008214/1.019, allocations: 5.384 MB / 0.7404 GB, free: 174.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.572e-05/1.019, allocations: 4 kB / 0.7404 GB, free: 174.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002779/1.022, allocations: 2.024 MB / 0.7424 GB, free: 174.1 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002245/1.024, allocations: 356.1 kB / 0.7428 GB, free: 173.9 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05457/1.079, allocations: 39.67 MB / 0.7815 GB, free: 138.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003101/1.082, allocations: 3.165 MB / 0.7846 GB, free: 135.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003465/1.085, allocations: 1.957 MB / 0.7865 GB, free: 133.7 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002095/1.087, allocations: 1.706 MB / 0.7882 GB, free: 132 MB / 0.5762 GB Notification: Performance of SimCode: time 1.022e-06/1.087, allocations: 0 / 0.7882 GB, free: 132 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5045/1.592, allocations: 54.43 MB / 0.8413 GB, free: 77.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.59/23.19, allocations: 6.5 kB / 0.8413 GB, free: 77.79 MB / 0.5762 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute_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_Revolute.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1)