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.0008682/0.0008682, allocations: 92.89 kB / 17 MB, free: 6.391 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.001003/0.001003, allocations: 182.8 kB / 17.89 MB, free: 5.922 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.413/1.413, allocations: 223.3 MB / 241.9 MB, free: 14.52 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.2083/0.2083, allocations: 44.21 MB / 337.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000314/0.000314, allocations: 10.09 kB / 409.7 MB, free: 27.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1604, allocations: 61.92 MB / 471.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.04311/0.2035, allocations: 31.51 MB / 0.4914 GB, free: 14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02142/0.225, allocations: 7.459 MB / 0.4987 GB, free: 6.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007447/0.2325, allocations: 147.6 kB / 0.4988 GB, free: 6.375 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007367/0.2399, allocations: 1.594 MB / 0.5004 GB, free: 4.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2684/0.5084, allocations: 4.888 MB / 0.5051 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002415/0.5108, allocations: 0.5829 MB / 0.5057 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03887/0.5497, allocations: 32.02 MB / 0.537 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00453/0.5543, allocations: 2.986 MB / 0.5399 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.5561, allocations: 1.136 MB / 0.541 GB, free: 2.727 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.558, allocations: 1.789 MB / 0.5427 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003616/0.5584, allocations: 124 kB / 0.5429 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001553/0.56, allocations: 0.9632 MB / 0.5438 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001316/0.5613, allocations: 1.487 MB / 0.5453 GB, free: 15.48 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008615/0.5622, allocations: 0.7245 MB / 0.546 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004311/0.5665, allocations: 4.842 MB / 0.5507 GB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.703e-06/0.5665, allocations: 0 / 0.5507 GB, free: 11.02 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5665, allocations: 0 / 0.5507 GB, free: 11.02 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.725e-05/0.5666, allocations: 0 / 0.5507 GB, free: 11.02 MB / 398.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.006625/0.5732, allocations: 3.658 MB / 0.5543 GB, free: 7.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.5733, allocations: 8.031 kB / 0.5543 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006955/0.574, allocations: 0.6311 MB / 0.5549 GB, free: 7.215 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06672/0.6407, allocations: 7.21 MB / 0.5619 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005249/0.646, allocations: 2.645 MB / 0.5645 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000155/0.6462, allocations: 192.4 kB / 0.5647 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006951/0.6469, allocations: 270.6 kB / 0.565 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01415/0.6611, allocations: 8.515 MB / 0.5733 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001281/0.6612, allocations: 47.12 kB / 0.5733 GB, free: 7.211 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003828/0.6616, allocations: 126.4 kB / 0.5734 GB, free: 7.176 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002848/0.6645, allocations: 1.738 MB / 0.5751 GB, free: 5.738 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01426/0.6788, allocations: 7.14 MB / 0.5821 GB, free: 0.75 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04195/0.7208, allocations: 33.95 MB / 0.6153 GB, free: 14.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008584/0.7294, allocations: 3.451 MB / 0.6186 GB, free: 10.61 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002228/0.7317, allocations: 1.65 MB / 0.6202 GB, free: 8.957 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01046/0.7422, allocations: 7.218 MB / 0.6273 GB, free: 1.531 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.7422, allocations: 55.56 kB / 0.6273 GB, free: 1.469 MB / 462.1 MB Notification: Performance of pre-optimization done (n=151): time 5.39e-06/0.7423, allocations: 0 / 0.6273 GB, free: 1.469 MB / 462.1 MB Notification: Performance of matching and sorting (n=188): time 0.05845/0.8007, allocations: 19.36 MB / 0.6463 GB, free: 13.97 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.8008, allocations: 205.2 kB / 0.6464 GB, free: 13.73 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005036/0.8059, allocations: 3.72 MB / 0.6501 GB, free: 10.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004386/0.8064, allocations: 55.67 kB / 0.6501 GB, free: 9.965 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001806/0.8082, allocations: 2.82 MB / 0.6529 GB, free: 7.156 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008096/0.809, allocations: 0.7182 MB / 0.6536 GB, free: 6.445 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00025/0.8093, allocations: 120 kB / 0.6537 GB, free: 6.328 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0003148/0.8096, allocations: 0.556 MB / 0.6542 GB, free: 5.766 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003035/0.8126, allocations: 2.069 MB / 0.6563 GB, free: 3.691 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005668/0.8183, allocations: 5.628 MB / 0.6618 GB, free: 12.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005022/0.8234, allocations: 3.337 MB / 0.665 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.483e-05/0.8234, allocations: 36 kB / 0.6651 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0183/0.8418, allocations: 8.673 MB / 0.6735 GB, free: 244 kB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/0.8419, allocations: 65.83 kB / 0.6736 GB, free: 180 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001399/0.8421, allocations: 124 kB / 0.6737 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00496/0.847, allocations: 1.445 MB / 0.6751 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004373/0.8514, allocations: 1.294 MB / 0.6764 GB, free: 13.31 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/0.8636, allocations: 8.594 MB / 0.6848 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003979/0.8676, allocations: 303.6 kB / 0.6851 GB, free: 4.293 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007251/0.8684, allocations: 356 kB / 0.6854 GB, free: 3.945 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.003347/0.8717, allocations: 1.892 MB / 0.6872 GB, free: 2.039 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007051/0.8725, allocations: 335.7 kB / 0.6876 GB, free: 1.707 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008216/0.8807, allocations: 3.79 MB / 0.6913 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.13e-05/0.8808, allocations: 20 kB / 0.6913 GB, free: 13.89 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.067e-05/0.8808, allocations: 12 kB / 0.6913 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.527e-05/0.8808, allocations: 7.969 kB / 0.6913 GB, free: 13.87 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01585/0.8967, allocations: 8.204 MB / 0.6993 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.587e-05/0.8967, allocations: 0 / 0.6993 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001212/0.8979, allocations: 251.6 kB / 0.6996 GB, free: 5.398 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0045/0.9025, allocations: 1.206 MB / 0.7007 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002132/0.9027, allocations: 35.34 kB / 0.7008 GB, free: 4.156 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.252/1.155, allocations: 7.875 MB / 0.7085 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/1.155, allocations: 5.25 kB / 0.7085 GB, free: 184.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/1.167, allocations: 6.287 MB / 0.7146 GB, free: 183.4 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/1.168, allocations: 380.3 kB / 0.715 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005929/1.169, allocations: 31.16 kB / 0.715 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/1.171, allocations: 84.84 kB / 0.7151 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004419/1.171, allocations: 113.8 kB / 0.7152 GB, free: 183.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001789/1.171, allocations: 54.05 kB / 0.7152 GB, free: 183.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005281/1.176, allocations: 2.317 MB / 0.7175 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.9e-07/1.177, allocations: 0 / 0.7175 GB, free: 182.5 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007059/1.184, allocations: 0.9629 MB / 0.7184 GB, free: 182.4 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.0126/1.196, allocations: 6.995 MB / 0.7253 GB, free: 179.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007768/1.204, allocations: 5.17 MB / 0.7303 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.85e-06/1.204, allocations: 0 / 0.7303 GB, free: 177.7 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002158/1.206, allocations: 1.74 MB / 0.732 GB, free: 176.9 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002294/1.209, allocations: 394 kB / 0.7324 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0559/1.264, allocations: 32.67 MB / 0.7643 GB, free: 146.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002527/1.267, allocations: 2.962 MB / 0.7672 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003884/1.271, allocations: 1.817 MB / 0.769 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001692/1.273, allocations: 1.651 MB / 0.7706 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of SimCode: time 9.42e-07/1.273, allocations: 0 / 0.7706 GB, free: 140.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1174/1.39, allocations: 74.01 MB / 0.8429 GB, free: 66.53 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/1.39, allocations: 206.9 kB / 0.8431 GB, free: 66.29 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.149/5.539, allocations: 0 / 0.8431 GB, free: 66.29 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