Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001417/0.001416, allocations: 178.6 kB / 16.41 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.836/1.836, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007664/0.0007661, allocations: 90.3 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3428/0.3428, allocations: 43.56 MB / 362.7 MB, free: 52.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000424/0.0004241, allocations: 12 kB / 431.4 MB, free: 6.145 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.117, allocations: 58.85 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.2252/0.3423, allocations: 31.53 MB / 0.5095 GB, free: 28.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01703/0.3594, allocations: 7.479 MB / 0.5168 GB, free: 23.19 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0074/0.3668, allocations: 149.2 kB / 0.517 GB, free: 23.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005108/0.372, allocations: 1.578 MB / 0.5185 GB, free: 22.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01326/0.3852, allocations: 4.89 MB / 0.5233 GB, free: 20.58 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002704/0.388, allocations: 0.5875 MB / 0.5239 GB, free: 20.36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0221/0.4101, allocations: 18.42 MB / 0.5419 GB, free: 15.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00545/0.4156, allocations: 2.988 MB / 0.5448 GB, free: 14.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002817/0.4185, allocations: 1.141 MB / 0.5459 GB, free: 14.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003378/0.4219, allocations: 1.79 MB / 0.5476 GB, free: 13.38 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.4229, allocations: 123.8 kB / 0.5478 GB, free: 13.38 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002972/0.4259, allocations: 0.9563 MB / 0.5487 GB, free: 12.97 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002255/0.4282, allocations: 1.503 MB / 0.5502 GB, free: 12.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001498/0.4297, allocations: 0.7174 MB / 0.5509 GB, free: 11.66 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005405/0.4351, allocations: 4.687 MB / 0.5554 GB, free: 7.992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.4351, allocations: 7.938 kB / 0.5554 GB, free: 7.984 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4351, allocations: 0 / 0.5554 GB, free: 7.984 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002007/0.4353, allocations: 0 / 0.5554 GB, free: 7.984 MB / 378.7 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.006893/0.4422, allocations: 3.543 MB / 0.5589 GB, free: 4.375 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.4423, allocations: 8.562 kB / 0.5589 GB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01505/0.4574, allocations: 2.495 MB / 0.5614 GB, free: 1.863 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005114/0.4625, allocations: 2.398 MB / 0.5637 GB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.4627, allocations: 193.9 kB / 0.5639 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006631/0.4634, allocations: 271.7 kB / 0.5641 GB, free: 14.95 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01413/0.4775, allocations: 8.591 MB / 0.5725 GB, free: 5.727 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001002/0.4777, allocations: 39.66 kB / 0.5726 GB, free: 5.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003366/0.478, allocations: 127.9 kB / 0.5727 GB, free: 5.562 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002695/0.4807, allocations: 1.731 MB / 0.5744 GB, free: 3.832 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01388/0.4946, allocations: 7.268 MB / 0.5815 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03992/0.5346, allocations: 34.19 MB / 0.6149 GB, free: 9.309 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008252/0.5429, allocations: 3.525 MB / 0.6183 GB, free: 5.645 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002192/0.5451, allocations: 1.709 MB / 0.62 GB, free: 3.926 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01047/0.5556, allocations: 7.424 MB / 0.6272 GB, free: 12.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.5556, allocations: 47.56 kB / 0.6273 GB, free: 12.18 MB / 458.7 MB Notification: Performance of pre-optimization done (n=151): time 3.827e-06/0.5557, allocations: 0 / 0.6273 GB, free: 12.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=188): time 0.06089/0.6166, allocations: 19.98 MB / 0.6468 GB, free: 8.027 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/0.6167, allocations: 205.2 kB / 0.647 GB, free: 7.785 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004995/0.6217, allocations: 3.731 MB / 0.6506 GB, free: 4.062 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003319/0.6221, allocations: 53.69 kB / 0.6507 GB, free: 4.004 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001922/0.624, allocations: 2.799 MB / 0.6534 GB, free: 1.16 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007851/0.6248, allocations: 0.7212 MB / 0.6541 GB, free: 440 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002677/0.6251, allocations: 116 kB / 0.6542 GB, free: 324 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003467/0.6254, allocations: 0.5581 MB / 0.6548 GB, free: 15.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003108/0.6285, allocations: 2.178 MB / 0.6569 GB, free: 13.57 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00545/0.634, allocations: 5.747 MB / 0.6625 GB, free: 6.043 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005118/0.6392, allocations: 3.445 MB / 0.6659 GB, free: 2.602 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-05/0.6393, allocations: 36 kB / 0.6659 GB, free: 2.566 MB / 490.7 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.01986/0.6591, allocations: 9.161 MB / 0.6749 GB, free: 9.391 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.6593, allocations: 67.86 kB / 0.6749 GB, free: 9.328 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001485/0.6594, allocations: 124 kB / 0.675 GB, free: 9.207 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006143/0.6656, allocations: 1.707 MB / 0.6767 GB, free: 7.496 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004715/0.6703, allocations: 1.326 MB / 0.678 GB, free: 6.168 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2098/0.8801, allocations: 9.292 MB / 0.6871 GB, free: 144 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004268/0.8844, allocations: 317.6 kB / 0.6874 GB, free: 144 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008822/0.8853, allocations: 362.2 kB / 0.6877 GB, free: 144 MB / 0.4949 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 (714): * Single equations (assignments): 710 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003582/0.8889, allocations: 1.892 MB / 0.6896 GB, free: 143.9 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006233/0.8896, allocations: 330.8 kB / 0.6899 GB, free: 143.9 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008928/0.8985, allocations: 4.165 MB / 0.6939 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.251e-05/0.8986, allocations: 21.48 kB / 0.694 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.66e-05/0.8986, allocations: 8.406 kB / 0.694 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.145e-05/0.8987, allocations: 10.2 kB / 0.694 GB, free: 143.4 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/0.9147, allocations: 8.573 MB / 0.7024 GB, free: 140.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/0.9148, allocations: 0 / 0.7024 GB, free: 140.4 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001168/0.916, allocations: 246.7 kB / 0.7026 GB, free: 140.4 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005154/0.9211, allocations: 1.458 MB / 0.704 GB, free: 140.2 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002063/0.9214, allocations: 36.94 kB / 0.7041 GB, free: 140.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0111/0.9325, allocations: 8.6 MB / 0.7125 GB, free: 136.2 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.9325, allocations: 6.656 kB / 0.7125 GB, free: 136.2 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/0.9437, allocations: 6.739 MB / 0.719 GB, free: 133.9 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001672/0.9454, allocations: 0.6251 MB / 0.7196 GB, free: 133.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005279/0.9459, allocations: 36.03 kB / 0.7197 GB, free: 133.5 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001441/0.9474, allocations: 91.92 kB / 0.7198 GB, free: 133.5 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003555/0.9478, allocations: 107.1 kB / 0.7199 GB, free: 133.4 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.9479, allocations: 55.09 kB / 0.7199 GB, free: 133.4 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.004186/0.9521, allocations: 2.311 MB / 0.7222 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of sort global known variables: time 4.1e-07/0.9521, allocations: 3.969 kB / 0.7222 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.005616/0.9577, allocations: 0.9972 MB / 0.7232 GB, free: 132.5 MB / 0.4949 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 36} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004878/0.9583, allocations: 172.7 kB / 0.7233 GB, free: 132.4 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.008916/0.9672, allocations: 5.388 MB / 0.7286 GB, free: 130.5 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.9672, allocations: 0 / 0.7286 GB, free: 130.5 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002842/0.9701, allocations: 1.802 MB / 0.7303 GB, free: 129.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002678/0.9728, allocations: 368.9 kB / 0.7307 GB, free: 129.6 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01555/0.9884, allocations: 10.4 MB / 0.7409 GB, free: 124.4 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002775/0.9912, allocations: 2.968 MB / 0.7438 GB, free: 123.2 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009085/0.9921, allocations: 269.3 kB / 0.744 GB, free: 123.2 MB / 0.4949 GB Notification: Performance of SimCode: time 7.91e-07/0.9921, allocations: 0 / 0.744 GB, free: 123.2 MB / 0.4949 GB Notification: Performance of Templates: time 0.07327/1.065, allocations: 68.81 MB / 0.8112 GB, free: 60.15 MB / 0.4949 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/ForceWithTwoMasses/ForceWithTwoMasses.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches