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.001706/0.001706, allocations: 105.2 kB / 17.63 MB, free: 5.344 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.001795/0.001795, allocations: 192 kB / 18.56 MB, free: 4.434 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.417/1.417, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.1986/0.1986, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 59.09 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1043, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01214/0.1165, allocations: 10.38 MB / 479.7 MB, free: 3.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00778/0.1243, allocations: 3.86 MB / 483.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.126, allocations: 63.81 kB / 483.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004134/0.1302, allocations: 2.075 MB / 485.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004578/0.1348, allocations: 1.704 MB / 487.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001737/0.1366, allocations: 0.6901 MB / 488.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006418/0.143, allocations: 3.977 MB / 492.1 MB, free: 7.441 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004125/0.1472, allocations: 2.594 MB / 494.7 MB, free: 4.793 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002657/0.1499, allocations: 1.308 MB / 496 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003239/0.1531, allocations: 1.861 MB / 497.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009444/0.1541, allocations: 264 kB / 498.1 MB, free: 1.355 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002795/0.1569, allocations: 1.186 MB / 499.3 MB, free: 172 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00206/0.159, allocations: 1.648 MB / 0.4892 GB, free: 14.52 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003444/0.1624, allocations: 1.977 MB / 0.4911 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007395/0.1699, allocations: 6.153 MB / 0.4972 GB, free: 6.355 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1699, allocations: 0 / 0.4972 GB, free: 6.355 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1699, allocations: 4 kB / 0.4972 GB, free: 6.352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001163/0.17, allocations: 0 / 0.4972 GB, free: 6.352 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.009777/0.1798, allocations: 4.346 MB / 0.5014 GB, free: 1.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.19e-05/0.1799, allocations: 8.031 kB / 0.5014 GB, free: 1.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008818/0.1808, allocations: 0.6288 MB / 0.502 GB, free: 1.289 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2843/0.465, allocations: 7.023 MB / 0.5089 GB, free: 46.05 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007831/0.4729, allocations: 2.69 MB / 0.5115 GB, free: 45.1 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.4731, allocations: 192.5 kB / 0.5117 GB, free: 45.04 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007189/0.4738, allocations: 273.1 kB / 0.512 GB, free: 44.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01232/0.4862, allocations: 8.515 MB / 0.5203 GB, free: 40.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.535e-05/0.4863, allocations: 39.47 kB / 0.5203 GB, free: 40.36 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002979/0.4866, allocations: 130.1 kB / 0.5204 GB, free: 40.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00227/0.4889, allocations: 1.74 MB / 0.5221 GB, free: 39.62 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0105/0.4994, allocations: 7.154 MB / 0.5291 GB, free: 33.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03057/0.53, allocations: 33.94 MB / 0.5623 GB, free: 14.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008597/0.5386, allocations: 3.411 MB / 0.5656 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002148/0.5408, allocations: 1.658 MB / 0.5672 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01168/0.5525, allocations: 7.227 MB / 0.5743 GB, free: 1.449 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.781e-05/0.5526, allocations: 47.56 kB / 0.5743 GB, free: 1.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=151): time 4.749e-06/0.5526, allocations: 4 kB / 0.5743 GB, free: 1.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=188): time 0.06185/0.6145, allocations: 19.02 MB / 0.5929 GB, free: 14.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.6146, allocations: 197.2 kB / 0.5931 GB, free: 13.99 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00489/0.6195, allocations: 3.752 MB / 0.5967 GB, free: 10.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003781/0.6199, allocations: 57.61 kB / 0.5968 GB, free: 10.19 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001957/0.6219, allocations: 2.819 MB / 0.5996 GB, free: 7.328 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008237/0.6227, allocations: 0.7212 MB / 0.6003 GB, free: 6.598 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001413/0.6241, allocations: 1.163 MB / 0.6014 GB, free: 5.422 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.6242, allocations: 301.1 kB / 0.6017 GB, free: 5.125 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002959/0.6272, allocations: 2.088 MB / 0.6037 GB, free: 3.031 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005139/0.6323, allocations: 5.663 MB / 0.6093 GB, free: 11.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009931/0.6423, allocations: 8.392 MB / 0.6174 GB, free: 1.445 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.6424, allocations: 36 kB / 0.6175 GB, free: 1.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0179/0.6604, allocations: 8.694 MB / 0.626 GB, free: 8.707 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.727e-05/0.6605, allocations: 60 kB / 0.626 GB, free: 8.648 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001303/0.6606, allocations: 124 kB / 0.6261 GB, free: 8.527 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005192/0.6658, allocations: 1.391 MB / 0.6275 GB, free: 7.133 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004251/0.6701, allocations: 1.29 MB / 0.6288 GB, free: 5.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01255/0.6827, allocations: 9.208 MB / 0.6378 GB, free: 12.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003928/0.6867, allocations: 295.5 kB / 0.638 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008083/0.6875, allocations: 356 kB / 0.6384 GB, free: 11.85 MB / 478.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.003054/0.6906, allocations: 1.896 MB / 0.6402 GB, free: 9.941 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006866/0.6913, allocations: 331.7 kB / 0.6405 GB, free: 9.613 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008394/0.6997, allocations: 3.767 MB / 0.6442 GB, free: 5.832 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.025e-05/0.6997, allocations: 23.94 kB / 0.6442 GB, free: 5.809 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/0.6998, allocations: 8 kB / 0.6443 GB, free: 5.801 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/0.6998, allocations: 15.91 kB / 0.6443 GB, free: 5.785 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01598/0.7158, allocations: 8.176 MB / 0.6523 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.682e-05/0.7158, allocations: 0 / 0.6523 GB, free: 13.54 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.7171, allocations: 247.6 kB / 0.6525 GB, free: 13.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004586/0.7217, allocations: 1.176 MB / 0.6536 GB, free: 12.12 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002662/0.722, allocations: 35.98 kB / 0.6537 GB, free: 12.08 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0119/0.7339, allocations: 8.478 MB / 0.662 GB, free: 3.461 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/0.734, allocations: 4.031 kB / 0.662 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/0.7451, allocations: 6.258 MB / 0.6681 GB, free: 13.17 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008246/0.7459, allocations: 372.7 kB / 0.6684 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004104/0.7464, allocations: 35.98 kB / 0.6685 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001363/0.7477, allocations: 79.91 kB / 0.6685 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000329/0.7481, allocations: 109.1 kB / 0.6686 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001265/0.7482, allocations: 51.98 kB / 0.6687 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003088/0.7513, allocations: 2.332 MB / 0.671 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.6e-07/0.7513, allocations: 0 / 0.671 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004077/0.7554, allocations: 0.97 MB / 0.6719 GB, free: 9.227 MB / 0.4981 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.01105/0.7665, allocations: 6.978 MB / 0.6787 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009129/0.7756, allocations: 6.122 MB / 0.6847 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/0.7757, allocations: 0 / 0.6847 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002348/0.778, allocations: 1.741 MB / 0.6864 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00222/0.7802, allocations: 409.2 kB / 0.6868 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2618/1.042, allocations: 49.21 MB / 0.7349 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/1.045, allocations: 2.966 MB / 0.7377 GB, free: 142.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003915/1.049, allocations: 1.808 MB / 0.7395 GB, free: 142.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001699/1.05, allocations: 1.654 MB / 0.7411 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of SimCode: time 7.81e-07/1.05, allocations: 4 kB / 0.7411 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09366/1.144, allocations: 70.48 MB / 0.81 GB, free: 70.93 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/13.37, allocations: 3.938 kB / 0.81 GB, free: 70.93 MB / 0.5137 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