Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007814/0.0007815, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 173.7 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.451/1.451, allocations: 205.4 MB / 222.8 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3451/0.3451, allocations: 43.55 MB / 314.6 MB, free: 8.793 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005451/0.0005453, allocations: 14.97 kB / 384 MB, free: 7.926 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.11, allocations: 58.86 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2484/0.3585, allocations: 31.53 MB / 474.4 MB, free: 32.47 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01624/0.3748, allocations: 7.464 MB / 481.9 MB, free: 27.43 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007231/0.3821, allocations: 147.6 kB / 482 MB, free: 27.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.3872, allocations: 1.583 MB / 483.6 MB, free: 26.85 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01324/0.4004, allocations: 4.884 MB / 488.5 MB, free: 24.82 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002434/0.4029, allocations: 0.5946 MB / 489.1 MB, free: 24.59 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02562/0.4285, allocations: 18.42 MB / 0.4956 GB, free: 19.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005875/0.4345, allocations: 2.991 MB / 0.4985 GB, free: 18.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003439/0.4379, allocations: 1.137 MB / 0.4996 GB, free: 18.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0032/0.4412, allocations: 1.8 MB / 0.5014 GB, free: 17.38 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005855/0.4418, allocations: 127 kB / 0.5015 GB, free: 17.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002132/0.4439, allocations: 0.9473 MB / 0.5024 GB, free: 16.97 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001356/0.4453, allocations: 1.493 MB / 0.5039 GB, free: 16.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008539/0.4462, allocations: 0.7284 MB / 0.5046 GB, free: 15.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004583/0.4508, allocations: 4.86 MB / 0.5094 GB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.4508, allocations: 0 / 0.5094 GB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.4508, allocations: 0 / 0.5094 GB, free: 12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002194/0.451, allocations: 0 / 0.5094 GB, free: 12 MB / 382.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.008931/0.46, allocations: 3.66 MB / 0.5129 GB, free: 8.281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/0.46, allocations: 8.031 kB / 0.5129 GB, free: 8.273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001627/0.4617, allocations: 0.6247 MB / 0.5136 GB, free: 7.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06212/0.5238, allocations: 7.216 MB / 0.5206 GB, free: 416 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006398/0.5302, allocations: 2.794 MB / 0.5233 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001605/0.5304, allocations: 196.9 kB / 0.5235 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006793/0.5311, allocations: 279.7 kB / 0.5238 GB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01252/0.5437, allocations: 8.514 MB / 0.5321 GB, free: 3.938 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-05/0.5438, allocations: 47.58 kB / 0.5321 GB, free: 3.891 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003474/0.5441, allocations: 123.9 kB / 0.5323 GB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00271/0.5469, allocations: 1.739 MB / 0.534 GB, free: 2.031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01308/0.5599, allocations: 7.143 MB / 0.5409 GB, free: 10.88 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03902/0.599, allocations: 33.97 MB / 0.5741 GB, free: 7.859 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008087/0.6071, allocations: 3.456 MB / 0.5775 GB, free: 4.266 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002433/0.6096, allocations: 1.651 MB / 0.5791 GB, free: 2.605 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0115/0.6211, allocations: 7.217 MB / 0.5861 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.266e-05/0.6212, allocations: 51.56 kB / 0.5862 GB, free: 11.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.139e-06/0.6212, allocations: 0 / 0.5862 GB, free: 11.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.05994/0.6812, allocations: 19.42 MB / 0.6052 GB, free: 7.477 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001074/0.6813, allocations: 205.2 kB / 0.6054 GB, free: 7.234 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.6859, allocations: 3.741 MB / 0.609 GB, free: 3.504 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.6861, allocations: 53.7 kB / 0.6091 GB, free: 3.445 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001861/0.688, allocations: 2.83 MB / 0.6118 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006697/0.6887, allocations: 0.7135 MB / 0.6125 GB, free: 15.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002326/0.6889, allocations: 116 kB / 0.6126 GB, free: 15.74 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003973/0.6893, allocations: 0.5539 MB / 0.6132 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002824/0.6921, allocations: 2.073 MB / 0.6152 GB, free: 13.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005398/0.6976, allocations: 5.628 MB / 0.6207 GB, free: 5.691 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004305/0.7019, allocations: 3.342 MB / 0.624 GB, free: 2.355 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-05/0.7019, allocations: 36 kB / 0.624 GB, free: 2.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.2277/0.9296, allocations: 8.671 MB / 0.6325 GB, free: 134.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.291e-05/0.9297, allocations: 66.39 kB / 0.6325 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.073e-05/0.9298, allocations: 123.8 kB / 0.6326 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004162/0.934, allocations: 1.449 MB / 0.6341 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003183/0.9372, allocations: 1.293 MB / 0.6353 GB, free: 134.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00973/0.9469, allocations: 8.592 MB / 0.6437 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003265/0.9502, allocations: 293.1 kB / 0.644 GB, free: 131.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003512/0.9506, allocations: 360.4 kB / 0.6443 GB, free: 131.9 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002184/0.9528, allocations: 1.897 MB / 0.6462 GB, free: 131 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003449/0.9531, allocations: 344.9 kB / 0.6465 GB, free: 131 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00718/0.9603, allocations: 3.777 MB / 0.6502 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.674e-05/0.9604, allocations: 25.44 kB / 0.6502 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.9604, allocations: 11.31 kB / 0.6502 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.9604, allocations: 12.64 kB / 0.6502 GB, free: 129.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01338/0.9738, allocations: 8.209 MB / 0.6583 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/0.9738, allocations: 0 / 0.6583 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.975, allocations: 256.2 kB / 0.6585 GB, free: 126.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004253/0.9792, allocations: 1.205 MB / 0.6597 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001428/0.9794, allocations: 32.25 kB / 0.6597 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01041/0.9898, allocations: 7.899 MB / 0.6674 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.9898, allocations: 0.6875 kB / 0.6674 GB, free: 122.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0108/1.001, allocations: 6.279 MB / 0.6736 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/1.002, allocations: 0.6173 MB / 0.6742 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003158/1.002, allocations: 32.38 kB / 0.6742 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001154/1.003, allocations: 87.48 kB / 0.6743 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002992/1.004, allocations: 111.2 kB / 0.6744 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000122/1.004, allocations: 53.44 kB / 0.6744 GB, free: 119.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003175/1.007, allocations: 2.325 MB / 0.6767 GB, free: 119.1 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.71e-07/1.007, allocations: 4.594 kB / 0.6767 GB, free: 119.1 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003764/1.011, allocations: 0.969 MB / 0.6777 GB, free: 119 MB / 494.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008902/1.02, allocations: 6.986 MB / 0.6845 GB, free: 116 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.006179/1.026, allocations: 5.178 MB / 0.6895 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/1.026, allocations: 0 / 0.6895 GB, free: 112.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/1.028, allocations: 1.738 MB / 0.6912 GB, free: 111 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002072/1.03, allocations: 396.3 kB / 0.6916 GB, free: 110.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04197/1.072, allocations: 32.75 MB / 0.7236 GB, free: 75.17 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/1.074, allocations: 2.97 MB / 0.7265 GB, free: 72.16 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003762/1.078, allocations: 1.82 MB / 0.7283 GB, free: 70.34 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001595/1.08, allocations: 1.655 MB / 0.7299 GB, free: 68.68 MB / 494.1 MB Notification: Performance of SimCode: time 9.01e-07/1.08, allocations: 0 / 0.7299 GB, free: 68.68 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.313/1.393, allocations: 74.11 MB / 0.8023 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002445/1.393, allocations: 218.6 kB / 0.8025 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.819/5.212, allocations: 7.875 kB / 0.8025 GB, free: 10.31 MB / 0.4981 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat