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.001133/0.001133, allocations: 101.1 kB / 16.26 MB, free: 5.93 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.001227/0.001227, allocations: 190.9 kB / 17.2 MB, free: 5.574 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.532/1.532, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2098/0.2098, allocations: 43.52 MB / 313.9 MB, free: 0.5195 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.00161/0.00161, allocations: 69.5 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09946, allocations: 57.79 MB / 440.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01002/0.1095, allocations: 10.39 MB / 451 MB, free: 12.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008405/0.118, allocations: 3.873 MB / 454.9 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001596/0.1196, allocations: 59.88 kB / 454.9 MB, free: 8.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004018/0.1237, allocations: 2.071 MB / 457 MB, free: 6.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004115/0.1279, allocations: 1.704 MB / 458.7 MB, free: 4.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001726/0.1296, allocations: 0.6979 MB / 459.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005483/0.1351, allocations: 3.798 MB / 463.2 MB, free: 120 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004177/0.1393, allocations: 2.621 MB / 465.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002709/0.1421, allocations: 1.32 MB / 467.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002991/0.1451, allocations: 1.846 MB / 469 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009892/0.1461, allocations: 268 kB / 469.3 MB, free: 10 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003299/0.1494, allocations: 1.182 MB / 470.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00245/0.1519, allocations: 1.656 MB / 472.1 MB, free: 7.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004068/0.156, allocations: 1.981 MB / 474.1 MB, free: 5.168 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008014/0.164, allocations: 6.157 MB / 480.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.151e-05/0.1641, allocations: 4 kB / 480.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1641, allocations: 0 / 480.2 MB, free: 14.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002624/0.1644, allocations: 0 / 480.2 MB, free: 14.99 MB / 366.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.01075/0.1752, allocations: 4.358 MB / 484.6 MB, free: 10.56 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.1752, allocations: 11.89 kB / 484.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001126/0.1764, allocations: 0.6288 MB / 485.2 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08781/0.2642, allocations: 7.029 MB / 492.3 MB, free: 2.867 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006099/0.2703, allocations: 2.843 MB / 495.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001706/0.2705, allocations: 193.3 kB / 495.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008567/0.2714, allocations: 283.5 kB / 495.6 MB, free: 15.49 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01395/0.2854, allocations: 8.509 MB / 0.4923 GB, free: 6.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001208/0.2855, allocations: 39.59 kB / 0.4923 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004526/0.286, allocations: 135.8 kB / 0.4924 GB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002664/0.2887, allocations: 1.727 MB / 0.4941 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/0.302, allocations: 7.167 MB / 0.5011 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2207/0.5228, allocations: 33.94 MB / 0.5343 GB, free: 65.26 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008916/0.5317, allocations: 3.41 MB / 0.5376 GB, free: 64.59 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002512/0.5343, allocations: 1.663 MB / 0.5392 GB, free: 64.55 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01134/0.5457, allocations: 7.235 MB / 0.5463 GB, free: 62.31 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.5458, allocations: 48.69 kB / 0.5463 GB, free: 62.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=151): time 4.979e-06/0.5458, allocations: 0 / 0.5463 GB, free: 62.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=188): time 0.05894/0.6047, allocations: 19.07 MB / 0.565 GB, free: 53.28 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.28e-05/0.6048, allocations: 201 kB / 0.5652 GB, free: 53.05 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003735/0.6086, allocations: 3.763 MB / 0.5688 GB, free: 49.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002251/0.6088, allocations: 56.7 kB / 0.5689 GB, free: 49.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.61, allocations: 2.834 MB / 0.5716 GB, free: 46.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005223/0.6105, allocations: 0.7117 MB / 0.5723 GB, free: 45.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001133/0.6116, allocations: 1.163 MB / 0.5735 GB, free: 44.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.607e-05/0.6117, allocations: 305.1 kB / 0.5738 GB, free: 44.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.614, allocations: 2.092 MB / 0.5758 GB, free: 42.13 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003419/0.6174, allocations: 5.647 MB / 0.5813 GB, free: 34.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006558/0.624, allocations: 8.405 MB / 0.5895 GB, free: 24.77 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.47e-05/0.6241, allocations: 39.94 kB / 0.5896 GB, free: 24.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01413/0.6382, allocations: 8.693 MB / 0.5981 GB, free: 16.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.556e-05/0.6383, allocations: 60 kB / 0.5981 GB, free: 15.98 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.339e-05/0.6384, allocations: 127.5 kB / 0.5982 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004501/0.6429, allocations: 1.387 MB / 0.5996 GB, free: 14.46 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003496/0.6464, allocations: 1.291 MB / 0.6009 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01068/0.6571, allocations: 9.2 MB / 0.6098 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004557/0.6617, allocations: 299.4 kB / 0.6101 GB, free: 3.547 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00094/0.6627, allocations: 364 kB / 0.6105 GB, free: 3.191 MB / 414.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 (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.00329/0.666, allocations: 1.895 MB / 0.6123 GB, free: 1.285 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006954/0.6667, allocations: 331.7 kB / 0.6126 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00853/0.6752, allocations: 3.765 MB / 0.6163 GB, free: 13.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.35e-05/0.6753, allocations: 27.12 kB / 0.6163 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.198e-05/0.6753, allocations: 12 kB / 0.6164 GB, free: 13.15 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.617e-05/0.6754, allocations: 9.469 kB / 0.6164 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01753/0.6929, allocations: 8.179 MB / 0.6244 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/0.693, allocations: 0 / 0.6244 GB, free: 4.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.6943, allocations: 247.6 kB / 0.6246 GB, free: 4.699 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004617/0.6989, allocations: 1.183 MB / 0.6257 GB, free: 3.516 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002523/0.6992, allocations: 43.92 kB / 0.6258 GB, free: 3.473 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01252/0.7117, allocations: 8.467 MB / 0.6341 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.7118, allocations: 7.969 kB / 0.6341 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01129/0.7231, allocations: 6.254 MB / 0.6402 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001373/0.7245, allocations: 0.6174 MB / 0.6408 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007728/0.7253, allocations: 35.77 kB / 0.6408 GB, free: 3.898 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001629/0.7269, allocations: 79.91 kB / 0.6409 GB, free: 3.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/0.7273, allocations: 109.1 kB / 0.641 GB, free: 3.711 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.7274, allocations: 59.92 kB / 0.641 GB, free: 3.652 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003863/0.7313, allocations: 2.348 MB / 0.6433 GB, free: 1.32 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7313, allocations: 0 / 0.6433 GB, free: 1.32 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004372/0.7357, allocations: 0.9623 MB / 0.6443 GB, free: 372 kB / 446.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 (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.01146/0.7472, allocations: 6.984 MB / 0.6511 GB, free: 9.359 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009887/0.7571, allocations: 6.113 MB / 0.6571 GB, free: 3.277 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/0.7571, allocations: 0 / 0.6571 GB, free: 3.277 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00243/0.7596, allocations: 1.745 MB / 0.6588 GB, free: 1.523 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/0.7623, allocations: 396.9 kB / 0.6591 GB, free: 1.141 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07556/0.8379, allocations: 49.37 MB / 0.7074 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004557/0.8425, allocations: 2.972 MB / 0.7103 GB, free: 5.422 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005453/0.848, allocations: 1.823 MB / 0.712 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003281/0.8513, allocations: 1.655 MB / 0.7137 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of SimCode: time 1.973e-06/0.8514, allocations: 0 / 0.7137 GB, free: 1.938 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2997/1.151, allocations: 70.61 MB / 0.7826 GB, free: 166.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/12.52, allocations: 0 / 0.7826 GB, free: 166.5 MB / 0.5294 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/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) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches