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: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 109.1 kB / 16.41 MB, free: 6.461 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.001206/0.001206, allocations: 189.5 kB / 17.34 MB, free: 5.723 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.374/1.374, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.221/0.221, allocations: 43.53 MB / 314.1 MB, free: 444 kB / 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.001369/0.00137, allocations: 70.19 kB / 441.8 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1554/0.1568, allocations: 57.8 MB / 499.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses): time 0.01192/0.1687, allocations: 10.4 MB / 0.498 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.009236/0.178, allocations: 3.877 MB / 0.5018 GB, free: 13.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002023/0.1801, allocations: 59.81 kB / 0.5019 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004151/0.1843, allocations: 2.059 MB / 0.5039 GB, free: 11.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005297/0.1896, allocations: 1.755 MB / 0.5056 GB, free: 9.555 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001918/0.1916, allocations: 0.7018 MB / 0.5063 GB, free: 8.852 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006751/0.1983, allocations: 3.814 MB / 0.51 GB, free: 5.027 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003406/0.2018, allocations: 2.602 MB / 0.5126 GB, free: 2.371 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002543/0.2043, allocations: 1.312 MB / 0.5138 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003188/0.2075, allocations: 1.857 MB / 0.5157 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006925/0.2083, allocations: 264 kB / 0.5159 GB, free: 14.93 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002477/0.2107, allocations: 1.186 MB / 0.5171 GB, free: 13.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001705/0.2125, allocations: 1.695 MB / 0.5187 GB, free: 12.05 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001912/0.2144, allocations: 1.903 MB / 0.5206 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008508/0.2229, allocations: 6.209 MB / 0.5266 GB, free: 3.902 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.656e-06/0.223, allocations: 0 / 0.5266 GB, free: 3.902 MB / 414.1 MB Notification: Performance of FrontEnd: time 5.37e-06/0.223, allocations: 0 / 0.5266 GB, free: 3.902 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002061/0.2232, allocations: 3.938 kB / 0.5266 GB, free: 3.898 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.3225/0.5457, allocations: 4.219 MB / 0.5308 GB, free: 37.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.225e-05/0.5458, allocations: 13.14 kB / 0.5308 GB, free: 37.2 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01668/0.5625, allocations: 2.433 MB / 0.5332 GB, free: 36.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00824/0.5708, allocations: 2.492 MB / 0.5356 GB, free: 36.33 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003341/0.5712, allocations: 195.1 kB / 0.5358 GB, free: 36.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00146/0.5727, allocations: 273.6 kB / 0.536 GB, free: 36.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02233/0.595, allocations: 8.582 MB / 0.5444 GB, free: 32.82 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001735/0.5953, allocations: 38.94 kB / 0.5445 GB, free: 32.8 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003952/0.5957, allocations: 125.8 kB / 0.5446 GB, free: 32.75 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003555/0.5992, allocations: 1.739 MB / 0.5463 GB, free: 32.43 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01829/0.6176, allocations: 7.282 MB / 0.5534 GB, free: 29.76 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04724/0.6649, allocations: 34.03 MB / 0.5866 GB, free: 12.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01036/0.6753, allocations: 3.475 MB / 0.59 GB, free: 8.668 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003049/0.6784, allocations: 1.723 MB / 0.5917 GB, free: 6.934 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01497/0.6934, allocations: 7.438 MB / 0.599 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.768e-05/0.6935, allocations: 51.56 kB / 0.599 GB, free: 15.18 MB / 446.1 MB Notification: Performance of pre-optimization done (n=151): time 6.513e-06/0.6936, allocations: 3.938 kB / 0.599 GB, free: 15.17 MB / 446.1 MB Notification: Performance of matching and sorting (n=188): time 0.0701/0.7637, allocations: 19.63 MB / 0.6182 GB, free: 11.39 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002026/0.7639, allocations: 205.2 kB / 0.6184 GB, free: 11.15 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008268/0.7722, allocations: 3.746 MB / 0.622 GB, free: 7.414 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004838/0.7727, allocations: 49.7 kB / 0.6221 GB, free: 7.359 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002953/0.7757, allocations: 2.803 MB / 0.6248 GB, free: 4.516 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00158/0.7773, allocations: 0.7173 MB / 0.6255 GB, free: 3.789 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003345/0.7807, allocations: 1.21 MB / 0.6267 GB, free: 2.566 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.7808, allocations: 301.1 kB / 0.627 GB, free: 2.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004474/0.7853, allocations: 2.202 MB / 0.6291 GB, free: 64 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007546/0.7929, allocations: 5.77 MB / 0.6348 GB, free: 8.516 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01257/0.8055, allocations: 8.592 MB / 0.6432 GB, free: 14.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001728/0.8057, allocations: 36 kB / 0.6432 GB, free: 14.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=782) (initialization): time 0.02614/0.8319, allocations: 9.17 MB / 0.6521 GB, free: 4.949 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002952/0.8322, allocations: 56.19 kB / 0.6522 GB, free: 4.895 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003962/0.8327, allocations: 132 kB / 0.6523 GB, free: 4.766 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00636/0.839, allocations: 1.665 MB / 0.654 GB, free: 3.094 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004954/0.844, allocations: 1.326 MB / 0.6552 GB, free: 1.766 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01688/0.8609, allocations: 9.911 MB / 0.6649 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005493/0.8665, allocations: 315.5 kB / 0.6652 GB, free: 7.402 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001525/0.868, allocations: 360 kB / 0.6656 GB, free: 7.051 MB / 0.4981 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 (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 {(2,43,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004815/0.8729, allocations: 1.888 MB / 0.6674 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001276/0.8742, allocations: 347.7 kB / 0.6677 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/0.8852, allocations: 4.122 MB / 0.6718 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.329e-05/0.8852, allocations: 20 kB / 0.6718 GB, free: 0.6484 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.712e-05/0.8853, allocations: 11.98 kB / 0.6718 GB, free: 0.6367 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.619e-05/0.8853, allocations: 15.91 kB / 0.6718 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02308/0.9084, allocations: 8.512 MB / 0.6801 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.282e-05/0.9085, allocations: 0 / 0.6801 GB, free: 8.043 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001316/0.9098, allocations: 247.6 kB / 0.6804 GB, free: 7.801 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005176/0.915, allocations: 1.429 MB / 0.6818 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002656/0.9153, allocations: 35.97 kB / 0.6818 GB, free: 6.332 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/0.9301, allocations: 9.228 MB / 0.6908 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.9302, allocations: 0 / 0.6908 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01323/0.9434, allocations: 6.723 MB / 0.6974 GB, free: 6.211 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001831/0.9453, allocations: 0.6294 MB / 0.698 GB, free: 5.559 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009373/0.9462, allocations: 24 kB / 0.698 GB, free: 5.535 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/0.9481, allocations: 87.89 kB / 0.6981 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/0.9486, allocations: 113.1 kB / 0.6982 GB, free: 5.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001608/0.9488, allocations: 59.92 kB / 0.6983 GB, free: 5.281 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.005539/0.9543, allocations: 2.328 MB / 0.7005 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.21e-07/0.9543, allocations: 0 / 0.7005 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007859/0.9622, allocations: 0.9975 MB / 0.7015 GB, free: 1.977 MB / 0.5294 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.0007862/0.963, allocations: 168.2 kB / 0.7017 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01213/0.9752, allocations: 5.421 MB / 0.707 GB, free: 12.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.9752, allocations: 0 / 0.707 GB, free: 12.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003272/0.9785, allocations: 1.801 MB / 0.7087 GB, free: 10.59 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/0.9827, allocations: 389.3 kB / 0.7091 GB, free: 10.21 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0205/1.003, allocations: 8.538 MB / 0.7174 GB, free: 1.645 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005068/1.008, allocations: 2.961 MB / 0.7203 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005051/1.013, allocations: 1.818 MB / 0.7221 GB, free: 12.83 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000942/1.014, allocations: 219.4 kB / 0.7223 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of SimCode: time 7.92e-07/1.014, allocations: 0 / 0.7223 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of Templates: time 0.4191/1.434, allocations: 36.27 MB / 0.7577 GB, free: 190.9 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins/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