Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001624/0.001624, allocations: 118.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.001834/0.001834, allocations: 205.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.41/1.41, allocations: 227.4 MB / 247 MB, free: 10.4 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.2258/0.2258, allocations: 46.11 MB / 344.3 MB, free: 11.46 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.00232/0.00232, allocations: 87.84 kB / 480.9 MB, free: 4.508 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.302/0.3043, allocations: 62.43 MB / 0.5306 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01279/0.3172, allocations: 10.35 MB / 0.5407 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008677/0.3259, allocations: 3.888 MB / 0.5445 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002072/0.328, allocations: 56.09 kB / 0.5446 GB, free: 2.102 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004623/0.3327, allocations: 2.073 MB / 0.5466 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005156/0.3379, allocations: 1.669 MB / 0.5482 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002021/0.3399, allocations: 0.7017 MB / 0.5489 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006705/0.3467, allocations: 3.989 MB / 0.5528 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003811/0.3505, allocations: 2.596 MB / 0.5553 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002581/0.3531, allocations: 1.304 MB / 0.5566 GB, free: 6.867 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003169/0.3563, allocations: 1.846 MB / 0.5584 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008766/0.3573, allocations: 264 kB / 0.5587 GB, free: 4.758 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002615/0.3599, allocations: 1.163 MB / 0.5598 GB, free: 3.594 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001893/0.3618, allocations: 1.648 MB / 0.5614 GB, free: 1.941 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002654/0.3645, allocations: 1.95 MB / 0.5633 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008597/0.3731, allocations: 6.347 MB / 0.5695 GB, free: 9.609 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.3731, allocations: 0 / 0.5695 GB, free: 9.609 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3731, allocations: 0 / 0.5695 GB, free: 9.609 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000154/0.3733, allocations: 0 / 0.5695 GB, free: 9.609 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: 1319 * Number of variables: 1319 Notification: Performance of Generate backend data structure: time 0.01153/0.3848, allocations: 4.445 MB / 0.5739 GB, free: 5.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.541e-05/0.3849, allocations: 12.03 kB / 0.5739 GB, free: 5.078 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001271/0.3862, allocations: 0.6171 MB / 0.5745 GB, free: 4.449 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09444/0.4806, allocations: 7.059 MB / 0.5814 GB, free: 13.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006266/0.4869, allocations: 2.637 MB / 0.5839 GB, free: 10.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/0.4872, allocations: 197.3 kB / 0.5841 GB, free: 10.48 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009539/0.4881, allocations: 271.8 kB / 0.5844 GB, free: 10.22 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01551/0.5036, allocations: 8.525 MB / 0.5927 GB, free: 1.062 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001242/0.5038, allocations: 39.64 kB / 0.5927 GB, free: 1.023 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004189/0.5042, allocations: 135.8 kB / 0.5929 GB, free: 0.8906 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002999/0.5073, allocations: 1.731 MB / 0.5946 GB, free: 15.15 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0147/0.522, allocations: 7.171 MB / 0.6016 GB, free: 7.973 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04364/0.5657, allocations: 33.86 MB / 0.6346 GB, free: 5.035 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009105/0.5748, allocations: 3.426 MB / 0.638 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002409/0.5773, allocations: 1.647 MB / 0.6396 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01162/0.5889, allocations: 7.321 MB / 0.6467 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.589, allocations: 51.56 kB / 0.6468 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.238e-06/0.589, allocations: 0 / 0.6468 GB, free: 8.141 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06588/0.6549, allocations: 19.24 MB / 0.6656 GB, free: 4.762 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/0.6551, allocations: 205.1 kB / 0.6658 GB, free: 4.52 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005631/0.6607, allocations: 3.749 MB / 0.6694 GB, free: 0.7812 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003141/0.6611, allocations: 49.7 kB / 0.6695 GB, free: 0.7266 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002389/0.6635, allocations: 2.933 MB / 0.6723 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009395/0.6644, allocations: 0.7481 MB / 0.6731 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001684/0.6661, allocations: 1.183 MB / 0.6742 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001452/0.6663, allocations: 301.1 kB / 0.6745 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003378/0.6696, allocations: 2.096 MB / 0.6766 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006464/0.6761, allocations: 5.66 MB / 0.6821 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01085/0.687, allocations: 8.412 MB / 0.6903 GB, free: 7.816 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.734e-05/0.6872, allocations: 36 kB / 0.6903 GB, free: 7.781 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01871/0.7059, allocations: 8.716 MB / 0.6989 GB, free: 15.06 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001054/0.706, allocations: 60 kB / 0.6989 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001669/0.7062, allocations: 124.2 kB / 0.699 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005238/0.7114, allocations: 1.392 MB / 0.7004 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/0.716, allocations: 1.306 MB / 0.7017 GB, free: 12.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0144/0.7305, allocations: 9.202 MB / 0.7107 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004266/0.7348, allocations: 299.6 kB / 0.7109 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009221/0.7357, allocations: 368 kB / 0.7113 GB, free: 2.172 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * Number of states: 0 () * Number of discrete variables: 36 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (695): * Single equations (assignments): 691 * Array equations: 3 * 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,44,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003439/0.7392, allocations: 1.895 MB / 0.7131 GB, free: 276 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007618/0.74, allocations: 353.6 kB / 0.7135 GB, free: 15.92 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008928/0.7489, allocations: 3.77 MB / 0.7172 GB, free: 12.13 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.462e-05/0.749, allocations: 24 kB / 0.7172 GB, free: 12.11 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.059e-05/0.749, allocations: 8 kB / 0.7172 GB, free: 12.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.227e-05/0.7491, allocations: 7.969 kB / 0.7172 GB, free: 12.09 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01718/0.7662, allocations: 8.156 MB / 0.7252 GB, free: 3.867 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/0.7663, allocations: 8 kB / 0.7252 GB, free: 3.859 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.7677, allocations: 247.6 kB / 0.7254 GB, free: 3.617 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004803/0.7725, allocations: 1.171 MB / 0.7265 GB, free: 2.441 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002534/0.7728, allocations: 35.98 kB / 0.7266 GB, free: 2.406 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2534/1.026, allocations: 8.464 MB / 0.7348 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.026, allocations: 2.578 kB / 0.7349 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01112/1.037, allocations: 6.318 MB / 0.741 GB, free: 173.3 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007811/1.038, allocations: 388.7 kB / 0.7414 GB, free: 173.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005003/1.039, allocations: 31.88 kB / 0.7414 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/1.04, allocations: 89.23 kB / 0.7415 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003221/1.04, allocations: 105.2 kB / 0.7416 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001243/1.041, allocations: 54.33 kB / 0.7417 GB, free: 173.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.002926/1.043, allocations: 2.33 MB / 0.7439 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.41e-07/1.043, allocations: 0 / 0.7439 GB, free: 172.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.003993/1.047, allocations: 0.9567 MB / 0.7449 GB, free: 172.2 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (130): * Single equations (assignments): 126 * Array equations: 3 * 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,36,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009864/1.057, allocations: 7.004 MB / 0.7517 GB, free: 169.4 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.006615/1.064, allocations: 5.22 MB / 0.7568 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/1.064, allocations: 0 / 0.7568 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.002003/1.066, allocations: 1.758 MB / 0.7585 GB, free: 164.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00228/1.068, allocations: 401.3 kB / 0.7589 GB, free: 164.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0535/1.122, allocations: 44.33 MB / 0.8022 GB, free: 114.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002552/1.124, allocations: 2.957 MB / 0.8051 GB, free: 111.4 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003286/1.128, allocations: 1.815 MB / 0.8069 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001657/1.129, allocations: 1.647 MB / 0.8085 GB, free: 108 MB / 0.5763 GB Notification: Performance of SimCode: time 8.92e-07/1.129, allocations: 0 / 0.8085 GB, free: 108 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09912/1.229, allocations: 66.85 MB / 0.8737 GB, free: 41.51 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.31/27.54, allocations: 11.69 kB / 0.8738 GB, free: 41.5 MB / 0.5763 GB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)