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.001276/0.001276, allocations: 177.9 kB / 16.41 MB, free: 5.574 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.539/1.539, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.0007514/0.0007516, allocations: 95.78 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.3682/0.3682, allocations: 43.55 MB / 362.7 MB, free: 52.13 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000671/0.0006711, allocations: 12 kB / 431.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1297, allocations: 58.85 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.2749/0.4046, allocations: 38.83 MB / 0.5167 GB, free: 23.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02159/0.4263, allocations: 8.759 MB / 0.5252 GB, free: 17.09 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01176/0.4381, allocations: 180.9 kB / 0.5254 GB, free: 17.06 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007999/0.4461, allocations: 1.985 MB / 0.5273 GB, free: 16.36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01947/0.4657, allocations: 6.028 MB / 0.5332 GB, free: 13.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003261/0.469, allocations: 0.6662 MB / 0.5339 GB, free: 13.58 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006293/0.4753, allocations: 4.927 MB / 0.5387 GB, free: 11.96 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007661/0.483, allocations: 4.147 MB / 0.5427 GB, free: 10.36 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003439/0.4864, allocations: 1.3 MB / 0.544 GB, free: 9.93 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004747/0.4912, allocations: 2.087 MB / 0.546 GB, free: 9.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001465/0.4927, allocations: 151.1 kB / 0.5462 GB, free: 9.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003249/0.496, allocations: 0.7298 MB / 0.5469 GB, free: 9.16 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00363/0.4996, allocations: 1.719 MB / 0.5486 GB, free: 8.668 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002393/0.502, allocations: 0.8397 MB / 0.5494 GB, free: 8.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008384/0.5104, allocations: 5.226 MB / 0.5545 GB, free: 4.887 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.5105, allocations: 0 / 0.5545 GB, free: 4.887 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.918e-06/0.5105, allocations: 0 / 0.5545 GB, free: 4.887 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004287/0.5109, allocations: 0 / 0.5545 GB, free: 4.887 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.013/0.5239, allocations: 4.016 MB / 0.5584 GB, free: 2.105 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.524, allocations: 13.81 kB / 0.5584 GB, free: 2.102 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008104/0.5321, allocations: 1.992 MB / 0.5604 GB, free: 1.098 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006116/0.5383, allocations: 2.398 MB / 0.5627 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003167/0.5386, allocations: 252.2 kB / 0.563 GB, free: 15.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001737/0.5404, allocations: 335.9 kB / 0.5633 GB, free: 15.35 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02316/0.5636, allocations: 10.19 MB / 0.5732 GB, free: 4.855 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002644/0.5639, allocations: 47.58 kB / 0.5733 GB, free: 4.809 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001446/0.5653, allocations: 155.9 kB / 0.5734 GB, free: 4.656 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00312/0.5685, allocations: 1.919 MB / 0.5753 GB, free: 2.734 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.5867, allocations: 8.111 MB / 0.5832 GB, free: 10.6 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05596/0.6427, allocations: 39.44 MB / 0.6217 GB, free: 2.004 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008553/0.6514, allocations: 3.266 MB / 0.6249 GB, free: 14.57 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002314/0.6537, allocations: 1.043 MB / 0.6259 GB, free: 13.51 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0106/0.6644, allocations: 5.912 MB / 0.6317 GB, free: 7.23 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/0.6645, allocations: 51.5 kB / 0.6318 GB, free: 7.172 MB / 458.7 MB Notification: Performance of pre-optimization done (n=148): time 5.33e-06/0.6645, allocations: 0 / 0.6318 GB, free: 7.172 MB / 458.7 MB Notification: Performance of matching and sorting (n=160): time 0.02686/0.6914, allocations: 9.461 MB / 0.641 GB, free: 13.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.6916, allocations: 153.5 kB / 0.6411 GB, free: 13.42 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007756/0.6993, allocations: 4.047 MB / 0.6451 GB, free: 9.344 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003542/0.6997, allocations: 45.7 kB / 0.6451 GB, free: 9.293 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002494/0.7022, allocations: 3.187 MB / 0.6483 GB, free: 6.059 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008823/0.7031, allocations: 0.633 MB / 0.6489 GB, free: 5.418 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.7034, allocations: 120 kB / 0.649 GB, free: 5.301 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003829/0.7038, allocations: 0.5701 MB / 0.6495 GB, free: 4.723 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002813/0.7066, allocations: 1.632 MB / 0.6511 GB, free: 3.086 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005382/0.712, allocations: 5.493 MB / 0.6565 GB, free: 11.65 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004668/0.7167, allocations: 2.928 MB / 0.6594 GB, free: 8.723 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.622e-05/0.7168, allocations: 40 kB / 0.6594 GB, free: 8.684 MB / 490.7 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01566/0.7325, allocations: 6.853 MB / 0.6661 GB, free: 1.824 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001595/0.7327, allocations: 69.19 kB / 0.6662 GB, free: 1.758 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002176/0.7329, allocations: 136 kB / 0.6663 GB, free: 1.625 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002377/0.7331, allocations: 200 kB / 0.6665 GB, free: 1.43 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004935/0.7381, allocations: 1.435 MB / 0.6679 GB, free: 15.99 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002788/0.7384, allocations: 266.9 kB / 0.6681 GB, free: 15.73 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005322/0.7437, allocations: 291.8 kB / 0.6684 GB, free: 15.45 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001021/0.7447, allocations: 376 kB / 0.6688 GB, free: 15.08 MB / 0.4949 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.005335/0.7501, allocations: 2.048 MB / 0.6708 GB, free: 13.02 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/0.7512, allocations: 347.5 kB / 0.6711 GB, free: 12.67 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00316/0.7544, allocations: 1.333 MB / 0.6724 GB, free: 11.32 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-05/0.7545, allocations: 23.98 kB / 0.6724 GB, free: 11.3 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.669e-05/0.7545, allocations: 4 kB / 0.6724 GB, free: 11.3 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.29e-05/0.7545, allocations: 3.984 kB / 0.6724 GB, free: 11.29 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.7687, allocations: 5.824 MB / 0.6781 GB, free: 5.164 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.61e-05/0.7688, allocations: 20 kB / 0.6781 GB, free: 5.145 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.7699, allocations: 283.5 kB / 0.6784 GB, free: 4.867 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-05/0.7699, allocations: 28.75 kB / 0.6784 GB, free: 4.84 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001226/0.7701, allocations: 44 kB / 0.6785 GB, free: 4.797 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.012e-05/0.7701, allocations: 39.86 kB / 0.6785 GB, free: 4.758 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-05/0.7701, allocations: 23.94 kB / 0.6785 GB, free: 4.734 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004777/0.7749, allocations: 3.275 MB / 0.6817 GB, free: 1.207 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001767/0.7767, allocations: 0.5238 MB / 0.6823 GB, free: 0.6602 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009397/0.7776, allocations: 55.97 kB / 0.6823 GB, free: 0.6055 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/0.7795, allocations: 55.97 kB / 0.6824 GB, free: 0.5508 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.7797, allocations: 151.4 kB / 0.6825 GB, free: 412 kB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.7798, allocations: 67.98 kB / 0.6826 GB, free: 344 kB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.2954/1.075, allocations: 2.498 MB / 0.685 GB, free: 148.6 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.082e-06/1.075, allocations: 1.406 kB / 0.685 GB, free: 148.6 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.00709/1.082, allocations: 0.9055 MB / 0.6859 GB, free: 148.6 MB / 0.4949 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.0005792/1.083, allocations: 197.7 kB / 0.6861 GB, free: 148.5 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.00784/1.091, allocations: 3.748 MB / 0.6897 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.918e-05/1.091, allocations: 5.156 kB / 0.6897 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001204/1.092, allocations: 0.7452 MB / 0.6905 GB, free: 148.1 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/1.096, allocations: 461.1 kB / 0.6909 GB, free: 148 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01751/1.113, allocations: 10.87 MB / 0.7015 GB, free: 142.4 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003335/1.117, allocations: 3.173 MB / 0.7046 GB, free: 141.1 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001063/1.118, allocations: 286.4 kB / 0.7049 GB, free: 141.1 MB / 0.4949 GB Notification: Performance of SimCode: time 1.012e-06/1.118, allocations: 2.938 kB / 0.7049 GB, free: 141.1 MB / 0.4949 GB Notification: Performance of Templates: time 0.08701/1.205, allocations: 52.72 MB / 0.7564 GB, free: 114.2 MB / 0.4949 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