Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001367/0.001367, allocations: 122.2 kB / 17.78 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00132/0.00132, allocations: 197.2 kB / 18.72 MB, free: 4.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.1 MB / 344.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 79.86 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3194/0.3215, allocations: 62.43 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01106/0.3326, allocations: 10.35 MB / 0.5406 GB, free: 5.312 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.008057/0.3407, allocations: 3.881 MB / 0.5444 GB, free: 2.289 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001836/0.3426, allocations: 61.12 kB / 0.5445 GB, free: 2.277 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00446/0.3471, allocations: 2.074 MB / 0.5465 GB, free: 0.875 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004887/0.3521, allocations: 1.709 MB / 0.5482 GB, free: 15.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001871/0.354, allocations: 0.6976 MB / 0.5488 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005837/0.3598, allocations: 4 MB / 0.5528 GB, free: 10.98 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004017/0.3639, allocations: 2.589 MB / 0.5553 GB, free: 8.344 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002757/0.3667, allocations: 1.304 MB / 0.5566 GB, free: 7.035 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0029/0.3696, allocations: 1.838 MB / 0.5583 GB, free: 5.191 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001021/0.3707, allocations: 264 kB / 0.5586 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002845/0.3735, allocations: 1.186 MB / 0.5598 GB, free: 3.746 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002601/0.3762, allocations: 1.664 MB / 0.5614 GB, free: 2.078 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004054/0.3803, allocations: 1.953 MB / 0.5633 GB, free: 116 kB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008945/0.3892, allocations: 6.347 MB / 0.5695 GB, free: 9.738 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.755e-06/0.3893, allocations: 0 / 0.5695 GB, free: 9.738 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.3893, allocations: 3.938 kB / 0.5695 GB, free: 9.734 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002198/0.3895, allocations: 0 / 0.5695 GB, free: 9.734 MB / 430.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.01104/0.4006, allocations: 4.449 MB / 0.5738 GB, free: 5.211 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.23e-05/0.4006, allocations: 8.031 kB / 0.5738 GB, free: 5.203 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001094/0.4017, allocations: 0.6249 MB / 0.5745 GB, free: 4.566 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08941/0.4912, allocations: 7.056 MB / 0.5813 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006422/0.4976, allocations: 2.637 MB / 0.5839 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001621/0.4978, allocations: 189.3 kB / 0.5841 GB, free: 10.61 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009632/0.4988, allocations: 275.7 kB / 0.5844 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01368/0.5125, allocations: 8.525 MB / 0.5927 GB, free: 1.188 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000115/0.5127, allocations: 43.64 kB / 0.5927 GB, free: 1.145 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004032/0.5131, allocations: 127.9 kB / 0.5929 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002806/0.5159, allocations: 1.735 MB / 0.5945 GB, free: 15.28 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01357/0.5295, allocations: 7.175 MB / 0.6016 GB, free: 8.094 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04113/0.5706, allocations: 33.86 MB / 0.6346 GB, free: 5.16 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008888/0.5796, allocations: 3.42 MB / 0.638 GB, free: 1.594 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002276/0.5819, allocations: 1.654 MB / 0.6396 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01251/0.5944, allocations: 7.325 MB / 0.6467 GB, free: 8.32 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.027e-05/0.5946, allocations: 51.5 kB / 0.6468 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=151): time 4.418e-06/0.5946, allocations: 0 / 0.6468 GB, free: 8.262 MB / 0.4981 GB Notification: Performance of matching and sorting (n=188): time 0.06698/0.6616, allocations: 19.24 MB / 0.6656 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.6617, allocations: 201.2 kB / 0.6658 GB, free: 4.645 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006401/0.6681, allocations: 3.749 MB / 0.6694 GB, free: 0.9062 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003832/0.6686, allocations: 53.7 kB / 0.6695 GB, free: 0.8477 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002269/0.6708, allocations: 2.941 MB / 0.6723 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009564/0.6718, allocations: 0.7404 MB / 0.6731 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002493/0.6743, allocations: 1.179 MB / 0.6742 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.57e-05/0.6745, allocations: 301.1 kB / 0.6745 GB, free: 11.64 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003523/0.678, allocations: 2.096 MB / 0.6765 GB, free: 9.543 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006226/0.6842, allocations: 5.66 MB / 0.6821 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/0.6944, allocations: 8.418 MB / 0.6903 GB, free: 7.938 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001299/0.6945, allocations: 40 kB / 0.6903 GB, free: 7.898 MB / 0.545 GB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01863/0.7132, allocations: 8.707 MB / 0.6988 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000162/0.7134, allocations: 61.09 kB / 0.6989 GB, free: 15.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002043/0.7136, allocations: 124 kB / 0.699 GB, free: 15 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005379/0.719, allocations: 1.396 MB / 0.7004 GB, free: 13.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004411/0.7234, allocations: 1.294 MB / 0.7016 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01417/0.7376, allocations: 9.205 MB / 0.7106 GB, free: 2.949 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004377/0.7421, allocations: 307.7 kB / 0.7109 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/0.7431, allocations: 359.9 kB / 0.7113 GB, free: 2.297 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.004014/0.7472, allocations: 1.896 MB / 0.7131 GB, free: 400 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008558/0.748, allocations: 353.6 kB / 0.7135 GB, free: 44 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009159/0.7572, allocations: 3.774 MB / 0.7171 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.35e-05/0.7573, allocations: 20 kB / 0.7172 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.302e-05/0.7573, allocations: 8 kB / 0.7172 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.511e-05/0.7574, allocations: 11.97 kB / 0.7172 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01882/0.7762, allocations: 8.156 MB / 0.7251 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.578e-05/0.7762, allocations: 0 / 0.7251 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/0.7777, allocations: 251.6 kB / 0.7254 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004687/0.7824, allocations: 1.183 MB / 0.7265 GB, free: 2.555 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002959/0.7827, allocations: 31.98 kB / 0.7266 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2437/1.026, allocations: 8.46 MB / 0.7348 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/1.026, allocations: 5.125 kB / 0.7348 GB, free: 175.7 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.038, allocations: 6.317 MB / 0.741 GB, free: 173.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001097/1.039, allocations: 389.1 kB / 0.7414 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006841/1.04, allocations: 32.28 kB / 0.7414 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001566/1.041, allocations: 85.45 kB / 0.7415 GB, free: 173.4 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003792/1.042, allocations: 109.5 kB / 0.7416 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001425/1.042, allocations: 58.92 kB / 0.7417 GB, free: 173.3 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.003461/1.045, allocations: 2.326 MB / 0.7439 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.8e-07/1.045, allocations: 0 / 0.7439 GB, free: 172.6 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.004403/1.05, allocations: 0.9453 MB / 0.7448 GB, free: 172.4 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.009831/1.06, allocations: 7.011 MB / 0.7517 GB, free: 169.6 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.006481/1.066, allocations: 5.231 MB / 0.7568 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.55e-06/1.066, allocations: 0 / 0.7568 GB, free: 166.6 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00197/1.068, allocations: 1.756 MB / 0.7585 GB, free: 164.8 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002335/1.071, allocations: 405 kB / 0.7589 GB, free: 164.4 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05594/1.127, allocations: 44.31 MB / 0.8022 GB, free: 114.7 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00291/1.13, allocations: 2.965 MB / 0.8051 GB, free: 111.7 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003533/1.133, allocations: 1.807 MB / 0.8068 GB, free: 109.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002026/1.135, allocations: 1.651 MB / 0.8084 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of SimCode: time 1.092e-06/1.135, allocations: 0 / 0.8084 GB, free: 108.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09664/1.232, allocations: 66.85 MB / 0.8737 GB, free: 41.79 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.98/27.21, allocations: 13.58 kB / 0.8737 GB, free: 41.79 MB / 0.5762 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_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_trunk_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches