Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_4_0_0_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.001067/0.001067, allocations: 98.97 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 183.3 kB / 17.87 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 241.8 MB, free: 14.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2384/0.2384, allocations: 44.23 MB / 337.1 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000363/0.0003631, allocations: 8 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1217, allocations: 61.91 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.02703/0.1488, allocations: 29.78 MB / 0.4896 GB, free: 15.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01722/0.1661, allocations: 7.754 MB / 0.4971 GB, free: 7.988 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005135/0.1713, allocations: 143.6 kB / 0.4973 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004912/0.1762, allocations: 1.439 MB / 0.4987 GB, free: 6.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0139/0.1901, allocations: 4.348 MB / 0.5029 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002311/0.1925, allocations: 0.5654 MB / 0.5035 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2519/0.4444, allocations: 24.85 MB / 0.5278 GB, free: 11.01 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003689/0.4482, allocations: 2.963 MB / 0.5306 GB, free: 10.63 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001116/0.4493, allocations: 0.9286 MB / 0.5316 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001199/0.4505, allocations: 1.279 MB / 0.5328 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002857/0.4508, allocations: 126 kB / 0.5329 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00133/0.4521, allocations: 0.9379 MB / 0.5338 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009887/0.4531, allocations: 1.381 MB / 0.5352 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006711/0.4538, allocations: 0.7252 MB / 0.5359 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003842/0.4577, allocations: 4.842 MB / 0.5406 GB, free: 4.004 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.4577, allocations: 5.938 kB / 0.5406 GB, free: 4.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.4577, allocations: 0 / 0.5406 GB, free: 4.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001063/0.4578, allocations: 0 / 0.5406 GB, free: 4.004 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.006968/0.4648, allocations: 3.689 MB / 0.5442 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.4649, allocations: 9.781 kB / 0.5442 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009197/0.4658, allocations: 0.6261 MB / 0.5449 GB, free: 176 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08318/0.549, allocations: 8.293 MB / 0.553 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006268/0.5553, allocations: 2.433 MB / 0.5553 GB, free: 6.465 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001475/0.5555, allocations: 197.8 kB / 0.5555 GB, free: 6.359 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008388/0.5563, allocations: 274.5 kB / 0.5558 GB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01297/0.5693, allocations: 8.57 MB / 0.5641 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001065/0.5695, allocations: 40.97 kB / 0.5642 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003298/0.5698, allocations: 125.8 kB / 0.5643 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002713/0.5725, allocations: 1.747 MB / 0.566 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/0.5861, allocations: 7.22 MB / 0.5731 GB, free: 8.812 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04611/0.6323, allocations: 34.04 MB / 0.6063 GB, free: 7.184 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008269/0.6406, allocations: 3.464 MB / 0.6097 GB, free: 3.594 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.6531, allocations: 7.273 MB / 0.6168 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.571e-05/0.6532, allocations: 58.92 kB / 0.6168 GB, free: 12.05 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 4.589e-06/0.6532, allocations: 0 / 0.6168 GB, free: 12.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.06185/0.7151, allocations: 19.62 MB / 0.636 GB, free: 8.309 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.7152, allocations: 197.2 kB / 0.6362 GB, free: 8.074 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005593/0.7208, allocations: 3.849 MB / 0.64 GB, free: 4.238 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000291/0.7211, allocations: 53.7 kB / 0.64 GB, free: 4.18 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001792/0.7229, allocations: 2.82 MB / 0.6428 GB, free: 1.375 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008517/0.7238, allocations: 0.7134 MB / 0.6435 GB, free: 0.668 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.7241, allocations: 120 kB / 0.6436 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003762/0.7244, allocations: 0.5538 MB / 0.6441 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/0.7273, allocations: 2.072 MB / 0.6461 GB, free: 13.91 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005139/0.7325, allocations: 5.602 MB / 0.6516 GB, free: 6.594 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004366/0.7369, allocations: 3.343 MB / 0.6549 GB, free: 3.371 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-05/0.7369, allocations: 36 kB / 0.6549 GB, free: 3.336 MB / 494.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01708/0.754, allocations: 8.671 MB / 0.6634 GB, free: 10.76 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.946e-05/0.7541, allocations: 63.95 kB / 0.6634 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001322/0.7543, allocations: 124 kB / 0.6635 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005051/0.7593, allocations: 1.45 MB / 0.665 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004148/0.7635, allocations: 1.296 MB / 0.6662 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01297/0.7765, allocations: 8.88 MB / 0.6749 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004644/0.7812, allocations: 302.9 kB / 0.6752 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009031/0.7821, allocations: 357.7 kB / 0.6755 GB, free: 14.17 MB / 0.5137 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 (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.00369/0.7858, allocations: 1.896 MB / 0.6774 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006723/0.7865, allocations: 335.7 kB / 0.6777 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008257/0.7948, allocations: 3.79 MB / 0.6814 GB, free: 8.125 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.105e-05/0.7949, allocations: 20 kB / 0.6814 GB, free: 8.105 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.686e-05/0.7949, allocations: 8.469 kB / 0.6814 GB, free: 8.098 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-05/0.7949, allocations: 11.97 kB / 0.6814 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01785/0.8128, allocations: 8.202 MB / 0.6895 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.271e-05/0.8129, allocations: 4 kB / 0.6895 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001309/0.8142, allocations: 247.6 kB / 0.6897 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0047/0.8189, allocations: 1.213 MB / 0.6909 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002841/0.8192, allocations: 39.98 kB / 0.6909 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01174/0.8309, allocations: 8.175 MB / 0.6989 GB, free: 6.062 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.831, allocations: 0 / 0.6989 GB, free: 6.062 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2681/1.099, allocations: 6.354 MB / 0.7051 GB, free: 184.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/1.1, allocations: 384.4 kB / 0.7055 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000702/1.101, allocations: 28.81 kB / 0.7055 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/1.103, allocations: 82.27 kB / 0.7056 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003941/1.103, allocations: 112.8 kB / 0.7057 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001696/1.103, allocations: 54.58 kB / 0.7057 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005336/1.109, allocations: 2.408 MB / 0.7081 GB, free: 184.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.71e-07/1.109, allocations: 0 / 0.7081 GB, free: 184.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005858/1.114, allocations: 0.9892 MB / 0.7091 GB, free: 184.2 MB / 0.5294 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 (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.01342/1.128, allocations: 7.258 MB / 0.7161 GB, free: 182.2 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008615/1.137, allocations: 5.173 MB / 0.7212 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/1.137, allocations: 0 / 0.7212 GB, free: 180.4 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002374/1.139, allocations: 1.738 MB / 0.7229 GB, free: 179.7 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/1.141, allocations: 364.1 kB / 0.7232 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06728/1.208, allocations: 118.6 MB / 0.8391 GB, free: 68.51 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002479/1.211, allocations: 3.052 MB / 0.8421 GB, free: 66.01 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003968/1.215, allocations: 1.817 MB / 0.8439 GB, free: 64.18 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/1.217, allocations: 1.659 MB / 0.8455 GB, free: 62.52 MB / 0.5294 GB Notification: Performance of SimCode: time 1.042e-06/1.217, allocations: 0 / 0.8455 GB, free: 62.52 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3431/1.56, allocations: 74.71 MB / 0.9184 GB, free: 172.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/1.56, allocations: 201.9 kB / 0.9186 GB, free: 172.4 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.871/5.431, allocations: 0 / 0.9186 GB, free: 172.4 MB / 0.5294 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat