Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.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: translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001067/0.001067, allocations: 108 kB / 18.45 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001097/0.001097, allocations: 211.8 kB / 19.4 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.09 MB / 344.9 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 79.86 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4058/0.4072, allocations: 62.43 MB / 0.5317 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01243/0.4197, allocations: 11.37 MB / 0.5428 GB, free: 4.668 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009477/0.4292, allocations: 4.054 MB / 0.5467 GB, free: 1.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00305/0.4323, allocations: 64.97 kB / 0.5468 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005542/0.4379, allocations: 2.492 MB / 0.5492 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006212/0.4442, allocations: 1.831 MB / 0.551 GB, free: 13.87 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002204/0.4464, allocations: 0.7761 MB / 0.5518 GB, free: 13.09 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006698/0.4531, allocations: 4.511 MB / 0.5562 GB, free: 8.574 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004918/0.458, allocations: 3.331 MB / 0.5594 GB, free: 5.199 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003126/0.4612, allocations: 1.557 MB / 0.5609 GB, free: 3.637 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00421/0.4654, allocations: 2.216 MB / 0.5631 GB, free: 1.414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/0.4672, allocations: 332 kB / 0.5634 GB, free: 1.09 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003285/0.4705, allocations: 0.9597 MB / 0.5644 GB, free: 132 kB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003201/0.4737, allocations: 1.921 MB / 0.5662 GB, free: 14.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004619/0.4783, allocations: 2.233 MB / 0.5684 GB, free: 11.96 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01009/0.4884, allocations: 6.81 MB / 0.5751 GB, free: 5.125 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.4885, allocations: 3.938 kB / 0.5751 GB, free: 5.121 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4885, allocations: 0 / 0.5751 GB, free: 5.121 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002996/0.4888, allocations: 0 / 0.5751 GB, free: 5.121 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: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.01278/0.5016, allocations: 4.792 MB / 0.5797 GB, free: 264 kB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.5017, allocations: 8.031 kB / 0.5798 GB, free: 256 kB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008074/0.5097, allocations: 1.949 MB / 0.5817 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005415/0.5152, allocations: 2.325 MB / 0.5839 GB, free: 11.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002941/0.5155, allocations: 258.4 kB / 0.5842 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001264/0.5168, allocations: 327.8 kB / 0.5845 GB, free: 11.33 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01963/0.5364, allocations: 10.23 MB / 0.5945 GB, free: 304 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001826/0.5367, allocations: 51.53 kB / 0.5945 GB, free: 252 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009228/0.5376, allocations: 155.9 kB / 0.5947 GB, free: 96 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00304/0.5406, allocations: 1.908 MB / 0.5965 GB, free: 14.18 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01696/0.5576, allocations: 8.169 MB / 0.6045 GB, free: 5.988 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04816/0.6058, allocations: 39.24 MB / 0.6428 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008733/0.6146, allocations: 3.304 MB / 0.6461 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001681/0.6163, allocations: 1.058 MB / 0.6471 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008979/0.6253, allocations: 5.985 MB / 0.6529 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.6254, allocations: 55.5 kB / 0.653 GB, free: 2.586 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 6.122e-06/0.6255, allocations: 3.984 kB / 0.653 GB, free: 2.582 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02546/0.6509, allocations: 9.511 MB / 0.6623 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001321/0.6511, allocations: 197.1 kB / 0.6625 GB, free: 8.727 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006203/0.6573, allocations: 4.042 MB / 0.6664 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002321/0.6576, allocations: 45.7 kB / 0.6665 GB, free: 4.605 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002371/0.66, allocations: 3.182 MB / 0.6696 GB, free: 1.375 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006853/0.6607, allocations: 0.6405 MB / 0.6702 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001448/0.6621, allocations: 1.218 MB / 0.6714 GB, free: 15.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.6623, allocations: 309.1 kB / 0.6717 GB, free: 15.19 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002611/0.6649, allocations: 1.659 MB / 0.6733 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005201/0.6701, allocations: 5.538 MB / 0.6787 GB, free: 6.051 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008727/0.6788, allocations: 7.794 MB / 0.6863 GB, free: 12.34 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001544/0.6791, allocations: 40 kB / 0.6864 GB, free: 12.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01362/0.6927, allocations: 6.928 MB / 0.6931 GB, free: 5.363 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/0.6928, allocations: 64 kB / 0.6932 GB, free: 5.301 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002611/0.6931, allocations: 136 kB / 0.6933 GB, free: 5.168 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002213/0.6933, allocations: 184 kB / 0.6935 GB, free: 4.988 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004552/0.6979, allocations: 1.431 MB / 0.6949 GB, free: 3.555 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002694/0.6982, allocations: 270.9 kB / 0.6952 GB, free: 3.289 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004271/0.7025, allocations: 303.8 kB / 0.6954 GB, free: 2.992 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009531/0.7035, allocations: 388 kB / 0.6958 GB, free: 2.613 MB / 0.545 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004175/0.7077, allocations: 2.029 MB / 0.6978 GB, free: 0.5703 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008514/0.7085, allocations: 347.5 kB / 0.6981 GB, free: 232 kB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001193/0.7097, allocations: 414.7 kB / 0.6985 GB, free: 15.81 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.921e-05/0.7098, allocations: 16 kB / 0.6985 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-05/0.7098, allocations: 7.984 kB / 0.6985 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.931e-05/0.7099, allocations: 7.922 kB / 0.6986 GB, free: 15.78 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/0.7221, allocations: 5.831 MB / 0.7042 GB, free: 9.641 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.884e-05/0.7222, allocations: 16.94 kB / 0.7043 GB, free: 9.625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001113/0.7233, allocations: 283.5 kB / 0.7045 GB, free: 9.348 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.454e-05/0.7234, allocations: 28 kB / 0.7046 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001302/0.7235, allocations: 52 kB / 0.7046 GB, free: 9.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.117e-05/0.7235, allocations: 35.86 kB / 0.7046 GB, free: 9.234 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.748e-05/0.7236, allocations: 31.81 kB / 0.7047 GB, free: 9.203 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004458/0.728, allocations: 3.311 MB / 0.7079 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.7291, allocations: 416.5 kB / 0.7083 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008609/0.73, allocations: 47.98 kB / 0.7083 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/0.7317, allocations: 63.95 kB / 0.7084 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.732, allocations: 143.4 kB / 0.7085 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.7321, allocations: 64 kB / 0.7086 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00503/0.7371, allocations: 2.507 MB / 0.7111 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.064e-06/0.7371, allocations: 0 / 0.7111 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00625/0.7434, allocations: 0.8945 MB / 0.7119 GB, free: 1.48 MB / 0.5606 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000633/0.7441, allocations: 190.7 kB / 0.7121 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006954/0.751, allocations: 3.851 MB / 0.7159 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.504e-05/0.7511, allocations: 0.75 kB / 0.7159 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001233/0.7523, allocations: 0.7526 MB / 0.7166 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/0.7562, allocations: 474.4 kB / 0.7171 GB, free: 12.25 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01877/0.775, allocations: 9.17 MB / 0.726 GB, free: 2.801 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2943/1.069, allocations: 3.16 MB / 0.7291 GB, free: 175.1 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/1.071, allocations: 288.3 kB / 0.7294 GB, free: 175 MB / 0.5762 GB Notification: Performance of SimCode: time 1.663e-06/1.071, allocations: 0.5312 kB / 0.7294 GB, free: 175 MB / 0.5762 GB Notification: Performance of Templates: time 0.07424/1.145, allocations: 53.61 MB / 0.7817 GB, free: 136.6 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches