Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.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.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000973/0.000973, allocations: 171.8 kB / 16.72 MB, free: 5.055 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.25/1.25, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007232/0.0007233, allocations: 86.38 kB / 271.2 MB, free: 8.246 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.2949/0.2949, allocations: 43.56 MB / 363.1 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003801, allocations: 16 kB / 432 MB, free: 5.602 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09668/0.09707, allocations: 58.86 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.1954/0.2925, allocations: 38.82 MB / 0.5172 GB, free: 22.76 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0163/0.3088, allocations: 8.759 MB / 0.5258 GB, free: 16.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006166/0.315, allocations: 179.3 kB / 0.526 GB, free: 16.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004819/0.3199, allocations: 1.998 MB / 0.5279 GB, free: 16.08 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01311/0.333, allocations: 6.041 MB / 0.5338 GB, free: 13.56 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002599/0.3356, allocations: 0.7087 MB / 0.5345 GB, free: 13.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004951/0.3406, allocations: 4.972 MB / 0.5394 GB, free: 11.63 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005385/0.346, allocations: 4.398 MB / 0.5437 GB, free: 9.887 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002135/0.3482, allocations: 1.294 MB / 0.5449 GB, free: 9.461 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003002/0.3512, allocations: 2.088 MB / 0.547 GB, free: 8.852 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006095/0.3518, allocations: 151.3 kB / 0.5471 GB, free: 8.852 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00191/0.3537, allocations: 0.8292 MB / 0.5479 GB, free: 8.656 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001823/0.3556, allocations: 1.726 MB / 0.5496 GB, free: 8.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001954/0.3576, allocations: 1.925 MB / 0.5515 GB, free: 6.871 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00493/0.3625, allocations: 5.223 MB / 0.5566 GB, free: 3.547 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3625, allocations: 0 / 0.5566 GB, free: 3.547 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3625, allocations: 3.984 kB / 0.5566 GB, free: 3.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000184/0.3627, allocations: 0 / 0.5566 GB, free: 3.543 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.007289/0.37, allocations: 3.973 MB / 0.5605 GB, free: 0.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3701, allocations: 9.125 kB / 0.5605 GB, free: 0.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006616/0.3767, allocations: 1.989 MB / 0.5624 GB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004799/0.3815, allocations: 2.444 MB / 0.5648 GB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002203/0.3818, allocations: 264.2 kB / 0.5651 GB, free: 14.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007752/0.3825, allocations: 325.4 kB / 0.5654 GB, free: 13.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01629/0.3988, allocations: 10.19 MB / 0.5753 GB, free: 2.809 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001124/0.399, allocations: 51.52 kB / 0.5754 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004275/0.3994, allocations: 163.8 kB / 0.5755 GB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002578/0.402, allocations: 1.9 MB / 0.5774 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01528/0.4173, allocations: 8.115 MB / 0.5853 GB, free: 8.555 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04127/0.4586, allocations: 39.45 MB / 0.6238 GB, free: 15.94 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00698/0.4657, allocations: 3.27 MB / 0.627 GB, free: 12.5 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.4672, allocations: 1.045 MB / 0.628 GB, free: 11.44 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007781/0.4749, allocations: 5.912 MB / 0.6338 GB, free: 5.152 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.542e-05/0.475, allocations: 55.44 kB / 0.6339 GB, free: 5.09 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 4.248e-06/0.475, allocations: 0 / 0.6339 GB, free: 5.09 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.0201/0.4951, allocations: 9.458 MB / 0.6431 GB, free: 11.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.122e-05/0.4952, allocations: 145.5 kB / 0.6432 GB, free: 11.34 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005019/0.5003, allocations: 4.044 MB / 0.6472 GB, free: 7.273 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001513/0.5004, allocations: 45.7 kB / 0.6472 GB, free: 7.223 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.5023, allocations: 3.183 MB / 0.6503 GB, free: 3.996 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00055/0.5028, allocations: 0.6443 MB / 0.651 GB, free: 3.344 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.503, allocations: 124 kB / 0.6511 GB, free: 3.223 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003037/0.5034, allocations: 0.5704 MB / 0.6516 GB, free: 2.645 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002364/0.5057, allocations: 1.62 MB / 0.6532 GB, free: 1.016 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004573/0.5103, allocations: 5.493 MB / 0.6586 GB, free: 9.59 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009293/0.5196, allocations: 7.763 MB / 0.6662 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001093/0.5198, allocations: 40 kB / 0.6662 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01187/0.5317, allocations: 6.847 MB / 0.6729 GB, free: 9.012 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.5318, allocations: 67.98 kB / 0.673 GB, free: 8.945 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001787/0.532, allocations: 140 kB / 0.6731 GB, free: 8.809 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001742/0.5322, allocations: 180 kB / 0.6733 GB, free: 8.633 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004158/0.5363, allocations: 1.439 MB / 0.6747 GB, free: 7.191 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002203/0.5366, allocations: 271 kB / 0.6749 GB, free: 6.926 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003986/0.5406, allocations: 299.5 kB / 0.6752 GB, free: 6.633 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008079/0.5414, allocations: 376 kB / 0.6756 GB, free: 6.266 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (775): * Single equations (assignments): 772 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004009/0.5454, allocations: 2.041 MB / 0.6776 GB, free: 4.211 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006855/0.5461, allocations: 347.5 kB / 0.6779 GB, free: 3.867 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/0.5487, allocations: 1.334 MB / 0.6792 GB, free: 2.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/0.5487, allocations: 20 kB / 0.6792 GB, free: 2.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.5487, allocations: 0 / 0.6792 GB, free: 2.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.571e-05/0.5487, allocations: 15.91 kB / 0.6792 GB, free: 2.484 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1906/0.7393, allocations: 5.813 MB / 0.6849 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.568e-05/0.7394, allocations: 17.59 kB / 0.6849 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009601/0.7404, allocations: 283.7 kB / 0.6852 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.431e-05/0.7404, allocations: 23.88 kB / 0.6852 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.138e-05/0.7405, allocations: 51.23 kB / 0.6853 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-05/0.7405, allocations: 35.7 kB / 0.6853 GB, free: 149.1 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-05/0.7405, allocations: 24.58 kB / 0.6853 GB, free: 149 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003662/0.7442, allocations: 3.27 MB / 0.6885 GB, free: 148 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001251/0.7455, allocations: 0.5267 MB / 0.689 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/0.7458, allocations: 49.38 kB / 0.6891 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.747, allocations: 65.03 kB / 0.6892 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.7471, allocations: 146.8 kB / 0.6893 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00011/0.7473, allocations: 68.62 kB / 0.6894 GB, free: 147.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003895/0.7512, allocations: 2.506 MB / 0.6918 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of sort global known variables: time 2.01e-07/0.7512, allocations: 0 / 0.6918 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004703/0.7559, allocations: 0.9102 MB / 0.6927 GB, free: 147.6 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.v) * 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 (145): * Single equations (assignments): 142 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000424/0.7563, allocations: 198.1 kB / 0.6929 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005227/0.7616, allocations: 3.749 MB / 0.6965 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/0.7616, allocations: 3.062 kB / 0.6965 GB, free: 146.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008762/0.7625, allocations: 0.7387 MB / 0.6973 GB, free: 146 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01132/0.7738, allocations: 468 kB / 0.6977 GB, free: 145.8 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01546/0.7893, allocations: 10.87 MB / 0.7083 GB, free: 139.7 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002829/0.7922, allocations: 3.177 MB / 0.7114 GB, free: 138.5 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007379/0.7929, allocations: 290 kB / 0.7117 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of SimCode: time 6.01e-07/0.7929, allocations: 0 / 0.7117 GB, free: 138.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.06654/0.8595, allocations: 52.58 MB / 0.7631 GB, free: 106.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches