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.001618/0.001618, allocations: 117.2 kB / 17.78 MB, free: 5.234 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.001739/0.001739, allocations: 185 kB / 18.72 MB, free: 4.312 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.4/1.4, allocations: 222.9 MB / 242.4 MB, free: 15.05 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.2215/0.2215, allocations: 44.18 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002066/0.002066, allocations: 67.89 kB / 470.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.325, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01161/0.3366, allocations: 10.41 MB / 0.5286 GB, free: 11.93 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008916/0.3456, allocations: 3.869 MB / 0.5324 GB, free: 9.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001915/0.3475, allocations: 61.16 kB / 0.5324 GB, free: 9.148 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004698/0.3522, allocations: 2.087 MB / 0.5345 GB, free: 7.742 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005009/0.3572, allocations: 1.748 MB / 0.5362 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001941/0.3591, allocations: 0.7045 MB / 0.5369 GB, free: 6.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006344/0.3655, allocations: 3.976 MB / 0.5408 GB, free: 3.855 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003589/0.369, allocations: 2.222 MB / 0.5429 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002911/0.372, allocations: 1.314 MB / 0.5442 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00334/0.3753, allocations: 1.846 MB / 0.546 GB, free: 15.75 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008947/0.3762, allocations: 268 kB / 0.5463 GB, free: 15.49 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003029/0.3792, allocations: 1.201 MB / 0.5474 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002653/0.3819, allocations: 1.722 MB / 0.5491 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003405/0.3853, allocations: 1.969 MB / 0.551 GB, free: 10.59 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009043/0.3943, allocations: 6.393 MB / 0.5573 GB, free: 4.168 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.772e-06/0.3943, allocations: 0 / 0.5573 GB, free: 4.168 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3943, allocations: 0 / 0.5573 GB, free: 4.168 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.00019/0.3945, allocations: 4 kB / 0.5573 GB, free: 4.164 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.01164/0.4062, allocations: 4.468 MB / 0.5617 GB, free: 15.62 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.4062, allocations: 8.031 kB / 0.5617 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001378/0.4076, allocations: 0.6249 MB / 0.5623 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08779/0.4954, allocations: 7.052 MB / 0.5692 GB, free: 7.914 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006366/0.5017, allocations: 2.746 MB / 0.5718 GB, free: 5.105 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.5019, allocations: 197.3 kB / 0.572 GB, free: 4.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009168/0.5029, allocations: 271.7 kB / 0.5723 GB, free: 4.645 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.5188, allocations: 8.509 MB / 0.5806 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001388/0.5189, allocations: 47.66 kB / 0.5806 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005545/0.5195, allocations: 131.8 kB / 0.5808 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003135/0.5226, allocations: 1.743 MB / 0.5825 GB, free: 9.59 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01476/0.5374, allocations: 7.147 MB / 0.5895 GB, free: 2.434 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0448/0.5822, allocations: 33.87 MB / 0.6225 GB, free: 15.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008976/0.5912, allocations: 3.279 MB / 0.6257 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002412/0.5936, allocations: 1.518 MB / 0.6272 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01196/0.6055, allocations: 7.226 MB / 0.6343 GB, free: 3.012 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.007e-05/0.6056, allocations: 55.48 kB / 0.6343 GB, free: 2.949 MB / 494.1 MB Notification: Performance of pre-optimization done (n=151): time 4.118e-06/0.6056, allocations: 0 / 0.6343 GB, free: 2.949 MB / 494.1 MB Notification: Performance of matching and sorting (n=188): time 0.06628/0.6719, allocations: 19.19 MB / 0.6531 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.672, allocations: 201.2 kB / 0.6533 GB, free: 15.38 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006047/0.678, allocations: 3.753 MB / 0.6569 GB, free: 11.64 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003238/0.6784, allocations: 53.64 kB / 0.657 GB, free: 11.58 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002529/0.6809, allocations: 2.945 MB / 0.6598 GB, free: 8.605 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009667/0.6819, allocations: 0.7443 MB / 0.6606 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002088/0.6839, allocations: 1.175 MB / 0.6617 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.6841, allocations: 301.1 kB / 0.662 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003659/0.6877, allocations: 2.092 MB / 0.6641 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007164/0.6949, allocations: 5.648 MB / 0.6696 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/0.7064, allocations: 8.403 MB / 0.6778 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001311/0.7065, allocations: 39.94 kB / 0.6778 GB, free: 2.656 MB / 0.5294 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.0185/0.725, allocations: 8.676 MB / 0.6863 GB, free: 9.969 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.059e-05/0.7251, allocations: 62.64 kB / 0.6863 GB, free: 9.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.7253, allocations: 128 kB / 0.6865 GB, free: 9.785 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005213/0.7305, allocations: 1.387 MB / 0.6878 GB, free: 8.395 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004321/0.7348, allocations: 1.294 MB / 0.6891 GB, free: 7.098 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01494/0.7497, allocations: 9.205 MB / 0.6981 GB, free: 13.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004038/0.7538, allocations: 295.6 kB / 0.6984 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008901/0.7547, allocations: 360 kB / 0.6987 GB, free: 13.1 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.00344/0.7581, allocations: 1.896 MB / 0.7006 GB, free: 11.19 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007137/0.7588, allocations: 353.6 kB / 0.7009 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009121/0.7679, allocations: 3.739 MB / 0.7045 GB, free: 7.082 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.554e-05/0.768, allocations: 24 kB / 0.7046 GB, free: 7.059 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.79e-05/0.768, allocations: 8 kB / 0.7046 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.248e-05/0.768, allocations: 7.969 kB / 0.7046 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01839/0.7864, allocations: 8.136 MB / 0.7125 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.299e-05/0.7864, allocations: 4 kB / 0.7125 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.7878, allocations: 247.6 kB / 0.7128 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004903/0.7927, allocations: 1.179 MB / 0.7139 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/0.793, allocations: 31.98 kB / 0.7139 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/0.8069, allocations: 8.475 MB / 0.7222 GB, free: 4.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.678e-06/0.8069, allocations: 3.984 kB / 0.7222 GB, free: 4.766 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2275/1.034, allocations: 6.257 MB / 0.7283 GB, free: 182.1 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008562/1.035, allocations: 391.2 kB / 0.7287 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007875/1.036, allocations: 31.73 kB / 0.7287 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001715/1.038, allocations: 75.16 kB / 0.7288 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004936/1.038, allocations: 115.2 kB / 0.7289 GB, free: 182 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001881/1.038, allocations: 53.98 kB / 0.729 GB, free: 182 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004477/1.043, allocations: 2.332 MB / 0.7313 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.51e-07/1.043, allocations: 2.406 kB / 0.7313 GB, free: 181.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.005217/1.048, allocations: 0.9689 MB / 0.7322 GB, free: 181.5 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.01231/1.06, allocations: 6.965 MB / 0.739 GB, free: 178.7 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.007967/1.068, allocations: 5.008 MB / 0.7439 GB, free: 177 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/1.068, allocations: 0 / 0.7439 GB, free: 177 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00234/1.071, allocations: 1.613 MB / 0.7455 GB, free: 176.3 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002925/1.074, allocations: 410.3 kB / 0.7459 GB, free: 176.1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05778/1.131, allocations: 44.25 MB / 0.7891 GB, free: 135.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002944/1.134, allocations: 2.969 MB / 0.792 GB, free: 132.8 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00356/1.138, allocations: 1.809 MB / 0.7937 GB, free: 131 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00192/1.14, allocations: 1.659 MB / 0.7954 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.282e-06/1.14, allocations: 1.75 kB / 0.7954 GB, free: 129.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.108/1.248, allocations: 67.27 MB / 0.8611 GB, free: 62.48 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.79/27.03, allocations: 11.72 kB / 0.8611 GB, free: 62.48 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 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.csv","/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