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.001502/0.001502, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 227.4 MB / 247 MB, free: 10.41 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.217/0.217, allocations: 46.11 MB / 344.3 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.002237/0.002237, allocations: 75.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2961, allocations: 62.46 MB / 0.5306 GB, free: 13.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01235/0.3085, allocations: 10.34 MB / 0.5407 GB, free: 5.219 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008116/0.3167, allocations: 3.889 MB / 0.5445 GB, free: 2.188 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001509/0.3182, allocations: 60.84 kB / 0.5446 GB, free: 2.176 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004256/0.3225, allocations: 2.069 MB / 0.5466 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004582/0.3271, allocations: 1.67 MB / 0.5482 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001738/0.3289, allocations: 0.6921 MB / 0.5489 GB, free: 14.92 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005949/0.3349, allocations: 3.997 MB / 0.5528 GB, free: 10.92 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003461/0.3384, allocations: 2.6 MB / 0.5553 GB, free: 8.27 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.3405, allocations: 1.3 MB / 0.5566 GB, free: 6.965 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002679/0.3432, allocations: 1.846 MB / 0.5584 GB, free: 5.113 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007383/0.344, allocations: 264 kB / 0.5587 GB, free: 4.855 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002462/0.3464, allocations: 1.174 MB / 0.5598 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.3483, allocations: 1.632 MB / 0.5614 GB, free: 2.043 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002439/0.3508, allocations: 1.957 MB / 0.5633 GB, free: 76 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008029/0.3588, allocations: 6.347 MB / 0.5695 GB, free: 9.703 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.3589, allocations: 0 / 0.5695 GB, free: 9.703 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3589, allocations: 4 kB / 0.5695 GB, free: 9.699 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001462/0.359, allocations: 0 / 0.5695 GB, free: 9.699 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.01083/0.3699, allocations: 4.437 MB / 0.5739 GB, free: 5.188 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.3699, allocations: 12.03 kB / 0.5739 GB, free: 5.176 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001222/0.3712, allocations: 0.621 MB / 0.5745 GB, free: 4.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09304/0.4642, allocations: 7.052 MB / 0.5814 GB, free: 13.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006295/0.4706, allocations: 2.637 MB / 0.5839 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.4708, allocations: 197.2 kB / 0.5841 GB, free: 10.59 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009679/0.4718, allocations: 279.7 kB / 0.5844 GB, free: 10.31 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01457/0.4864, allocations: 8.521 MB / 0.5927 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.4865, allocations: 35.7 kB / 0.5927 GB, free: 1.125 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003519/0.4869, allocations: 127.9 kB / 0.5929 GB, free: 1 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003091/0.49, allocations: 1.739 MB / 0.5946 GB, free: 15.25 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01461/0.5046, allocations: 7.171 MB / 0.6016 GB, free: 8.074 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04486/0.5495, allocations: 33.86 MB / 0.6346 GB, free: 5.133 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00967/0.5592, allocations: 3.435 MB / 0.638 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002818/0.5621, allocations: 1.649 MB / 0.6396 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01325/0.5754, allocations: 7.313 MB / 0.6467 GB, free: 8.293 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.559e-05/0.5755, allocations: 55.5 kB / 0.6468 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 5.451e-06/0.5755, allocations: 0 / 0.6468 GB, free: 8.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.07066/0.6462, allocations: 19.24 MB / 0.6656 GB, free: 4.855 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001635/0.6464, allocations: 201.2 kB / 0.6658 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006903/0.6533, allocations: 3.752 MB / 0.6694 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003911/0.6537, allocations: 49.7 kB / 0.6695 GB, free: 0.8203 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002704/0.6564, allocations: 2.937 MB / 0.6724 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001124/0.6576, allocations: 0.7442 MB / 0.6731 GB, free: 13.1 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002915/0.6605, allocations: 1.175 MB / 0.6742 GB, free: 11.91 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.6607, allocations: 305.1 kB / 0.6745 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003829/0.6645, allocations: 2.1 MB / 0.6766 GB, free: 9.508 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007212/0.6718, allocations: 5.66 MB / 0.6821 GB, free: 2.07 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/0.6832, allocations: 8.412 MB / 0.6903 GB, free: 7.91 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001294/0.6834, allocations: 36 kB / 0.6903 GB, free: 7.875 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01961/0.703, allocations: 8.72 MB / 0.6989 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001462/0.7032, allocations: 57 kB / 0.6989 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/0.7034, allocations: 131.9 kB / 0.699 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005461/0.7089, allocations: 1.388 MB / 0.7004 GB, free: 13.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004503/0.7134, allocations: 1.298 MB / 0.7017 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/0.729, allocations: 9.21 MB / 0.7107 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004606/0.7337, allocations: 303.6 kB / 0.7109 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/0.7349, allocations: 356 kB / 0.7113 GB, free: 2.27 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.004148/0.739, allocations: 1.896 MB / 0.7131 GB, free: 372 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009098/0.74, allocations: 353.6 kB / 0.7135 GB, free: 16 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009894/0.7499, allocations: 3.77 MB / 0.7172 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.902e-05/0.75, allocations: 20 kB / 0.7172 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-05/0.75, allocations: 8 kB / 0.7172 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.464e-05/0.75, allocations: 7.969 kB / 0.7172 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02006/0.7701, allocations: 8.16 MB / 0.7252 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.57e-05/0.7702, allocations: 0 / 0.7252 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.7716, allocations: 248.1 kB / 0.7254 GB, free: 3.719 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005036/0.7767, allocations: 1.175 MB / 0.7265 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003309/0.7771, allocations: 43.97 kB / 0.7266 GB, free: 2.496 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2444/1.021, allocations: 8.462 MB / 0.7349 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/1.022, allocations: 1.094 kB / 0.7349 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01148/1.033, allocations: 6.316 MB / 0.741 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008386/1.034, allocations: 386.9 kB / 0.7414 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007208/1.035, allocations: 32.62 kB / 0.7414 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001676/1.036, allocations: 86.08 kB / 0.7415 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004523/1.037, allocations: 109.6 kB / 0.7416 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00015/1.037, allocations: 51.47 kB / 0.7417 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003431/1.04, allocations: 2.333 MB / 0.7439 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.11e-07/1.04, allocations: 0 / 0.7439 GB, free: 172.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004631/1.045, allocations: 0.9459 MB / 0.7449 GB, free: 172.4 MB / 0.5762 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.01075/1.056, allocations: 7.012 MB / 0.7517 GB, free: 169.5 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006805/1.063, allocations: 5.228 MB / 0.7568 GB, free: 166.5 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/1.063, allocations: 0 / 0.7568 GB, free: 166.5 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002133/1.065, allocations: 1.752 MB / 0.7585 GB, free: 164.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002508/1.067, allocations: 406.5 kB / 0.7589 GB, free: 164.3 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05569/1.123, allocations: 44.32 MB / 0.8022 GB, free: 114.6 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003767/1.127, allocations: 2.953 MB / 0.8051 GB, free: 111.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.004052/1.131, allocations: 1.811 MB / 0.8068 GB, free: 109.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002606/1.134, allocations: 1.655 MB / 0.8085 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of SimCode: time 1.453e-06/1.134, allocations: 0 / 0.8085 GB, free: 108.2 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1067/1.24, allocations: 66.84 MB / 0.8737 GB, free: 41.72 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.75/27.99, allocations: 14.64 kB / 0.8737 GB, free: 41.71 MB / 0.5762 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1)