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.001069/0.001069, allocations: 110.4 kB / 17.78 MB, free: 5.27 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.001096/0.001096, allocations: 183.1 kB / 18.71 MB, free: 4.348 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.297/1.297, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.1889/0.1889, allocations: 44.18 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.83 kB / 470 MB, free: 13.66 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3149, allocations: 60.81 MB / 0.5184 GB, free: 3.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01166/0.3266, allocations: 10.39 MB / 0.5286 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007915/0.3346, allocations: 3.863 MB / 0.5323 GB, free: 9.168 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001732/0.3363, allocations: 61.38 kB / 0.5324 GB, free: 9.156 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004016/0.3404, allocations: 2.073 MB / 0.5344 GB, free: 7.754 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00455/0.345, allocations: 1.705 MB / 0.5361 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.3467, allocations: 0.6954 MB / 0.5368 GB, free: 6.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005389/0.3521, allocations: 3.978 MB / 0.5406 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00393/0.3561, allocations: 2.605 MB / 0.5432 GB, free: 2.34 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002339/0.3584, allocations: 1.312 MB / 0.5445 GB, free: 1.332 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00275/0.3612, allocations: 1.842 MB / 0.5463 GB, free: 15.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007536/0.362, allocations: 268 kB / 0.5465 GB, free: 15.22 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00238/0.3644, allocations: 1.205 MB / 0.5477 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001797/0.3662, allocations: 1.683 MB / 0.5493 GB, free: 12.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002712/0.3689, allocations: 1.965 MB / 0.5513 GB, free: 10.35 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006745/0.3757, allocations: 6.369 MB / 0.5575 GB, free: 3.961 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.3757, allocations: 0 / 0.5575 GB, free: 3.961 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.3757, allocations: 0 / 0.5575 GB, free: 3.961 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.3758, allocations: 0 / 0.5575 GB, free: 3.961 MB / 414.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.009119/0.385, allocations: 4.35 MB / 0.5617 GB, free: 15.54 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.385, allocations: 12.03 kB / 0.5617 GB, free: 15.53 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008225/0.3858, allocations: 0.6288 MB / 0.5624 GB, free: 14.89 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08992/0.4758, allocations: 7.022 MB / 0.5692 GB, free: 7.855 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006303/0.4821, allocations: 2.734 MB / 0.5719 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001279/0.4823, allocations: 197.3 kB / 0.5721 GB, free: 4.863 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006339/0.4829, allocations: 275.7 kB / 0.5723 GB, free: 4.594 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01256/0.4955, allocations: 8.509 MB / 0.5806 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.694e-05/0.4956, allocations: 43.58 kB / 0.5807 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003309/0.496, allocations: 127.8 kB / 0.5808 GB, free: 11.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002657/0.4986, allocations: 1.739 MB / 0.5825 GB, free: 9.551 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.013/0.5116, allocations: 7.155 MB / 0.5895 GB, free: 2.387 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0414/0.5531, allocations: 33.8 MB / 0.6225 GB, free: 15.49 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008465/0.5616, allocations: 3.423 MB / 0.6258 GB, free: 11.92 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002213/0.5638, allocations: 1.647 MB / 0.6275 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01152/0.5754, allocations: 7.217 MB / 0.6345 GB, free: 2.77 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.233e-05/0.5754, allocations: 47.56 kB / 0.6346 GB, free: 2.715 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 5.13e-06/0.5755, allocations: 4 kB / 0.6346 GB, free: 2.711 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06075/0.6362, allocations: 19.01 MB / 0.6531 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.6364, allocations: 201.2 kB / 0.6533 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005658/0.642, allocations: 3.748 MB / 0.657 GB, free: 11.56 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002951/0.6424, allocations: 53.64 kB / 0.657 GB, free: 11.5 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00187/0.6442, allocations: 2.822 MB / 0.6598 GB, free: 8.637 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008136/0.6451, allocations: 0.7134 MB / 0.6605 GB, free: 7.914 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/0.6468, allocations: 1.174 MB / 0.6616 GB, free: 6.727 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.489e-05/0.6469, allocations: 301.1 kB / 0.6619 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003009/0.6499, allocations: 2.092 MB / 0.664 GB, free: 4.332 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005163/0.6551, allocations: 5.644 MB / 0.6695 GB, free: 12.91 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008971/0.6641, allocations: 8.403 MB / 0.6777 GB, free: 2.758 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/0.6642, allocations: 36 kB / 0.6777 GB, free: 2.723 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0174/0.6817, allocations: 8.68 MB / 0.6862 GB, free: 10.04 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001558/0.6818, allocations: 60.97 kB / 0.6862 GB, free: 9.977 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/0.6821, allocations: 124 kB / 0.6864 GB, free: 9.855 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005106/0.6872, allocations: 1.399 MB / 0.6877 GB, free: 8.453 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0041/0.6913, allocations: 1.294 MB / 0.689 GB, free: 7.156 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01294/0.7043, allocations: 9.192 MB / 0.698 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003849/0.7082, allocations: 295.5 kB / 0.6982 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008902/0.7091, allocations: 364 kB / 0.6986 GB, free: 13.17 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.003182/0.7123, allocations: 1.892 MB / 0.7004 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006811/0.713, allocations: 335.6 kB / 0.7008 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008231/0.7212, allocations: 3.759 MB / 0.7044 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-05/0.7213, allocations: 20 kB / 0.7045 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.729e-05/0.7213, allocations: 8 kB / 0.7045 GB, free: 7.125 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.672e-05/0.7214, allocations: 7.969 kB / 0.7045 GB, free: 7.117 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/0.739, allocations: 8.164 MB / 0.7124 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.26e-05/0.7391, allocations: 4 kB / 0.7124 GB, free: 14.88 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/0.7403, allocations: 251.6 kB / 0.7127 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004422/0.7448, allocations: 1.183 MB / 0.7138 GB, free: 13.45 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/0.745, allocations: 32 kB / 0.7139 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01184/0.7569, allocations: 8.467 MB / 0.7221 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/0.7569, allocations: 0 / 0.7221 GB, free: 4.812 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2269/0.9839, allocations: 6.259 MB / 0.7283 GB, free: 182.8 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008798/0.9848, allocations: 375.9 kB / 0.7286 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007579/0.9856, allocations: 27.14 kB / 0.7286 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.9873, allocations: 77.89 kB / 0.7287 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003482/0.9876, allocations: 114.2 kB / 0.7288 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001345/0.9878, allocations: 53.17 kB / 0.7289 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003333/0.9911, allocations: 2.336 MB / 0.7312 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9911, allocations: 3.781 kB / 0.7312 GB, free: 182.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004086/0.9952, allocations: 0.9609 MB / 0.7321 GB, free: 182.2 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.01112/1.006, allocations: 6.975 MB / 0.7389 GB, free: 179.4 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006992/1.013, allocations: 5.202 MB / 0.744 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/1.013, allocations: 1 kB / 0.744 GB, free: 177.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.002188/1.016, allocations: 1.733 MB / 0.7457 GB, free: 176.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/1.018, allocations: 398.6 kB / 0.7461 GB, free: 176.7 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06051/1.078, allocations: 44.15 MB / 0.7892 GB, free: 135.9 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003799/1.082, allocations: 2.965 MB / 0.7921 GB, free: 132.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003693/1.086, allocations: 1.811 MB / 0.7938 GB, free: 131 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/1.088, allocations: 1.655 MB / 0.7955 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of SimCode: time 1.473e-06/1.088, allocations: 0 / 0.7955 GB, free: 129.4 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09554/1.184, allocations: 68.15 MB / 0.862 GB, free: 61.66 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.11/26.29, allocations: 3.859 kB / 0.862 GB, free: 61.66 MB / 0.5762 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/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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches