Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.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.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008509/0.000851, allocations: 97.25 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 184.5 kB / 16.92 MB, free: 6.934 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.682/1.682, allocations: 205.4 MB / 223.1 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4595/0.4595, allocations: 43.57 MB / 315 MB, free: 9.035 MB / 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.0005596/0.0005597, allocations: 20 kB / 384.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.148, allocations: 58.87 MB / 443.4 MB, free: 12.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3503/0.4984, allocations: 41.72 MB / 485.2 MB, free: 23.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02396/0.5224, allocations: 9.199 MB / 494.4 MB, free: 18.74 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01378/0.5363, allocations: 181.5 kB / 494.5 MB, free: 18.71 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00221/0.5385, allocations: 437.5 kB / 495 MB, free: 18.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00654/0.5451, allocations: 1.753 MB / 496.7 MB, free: 17.78 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.5475, allocations: 0.7276 MB / 497.4 MB, free: 17.46 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01035/0.5579, allocations: 6.16 MB / 0.4918 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01027/0.5682, allocations: 4.559 MB / 0.4963 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004247/0.5725, allocations: 1.191 MB / 0.4974 GB, free: 13.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005837/0.5784, allocations: 2.114 MB / 0.4995 GB, free: 12.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.58, allocations: 155.3 kB / 0.4996 GB, free: 12.74 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003246/0.5833, allocations: 0.8417 MB / 0.5005 GB, free: 12.53 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002864/0.5861, allocations: 1.762 MB / 0.5022 GB, free: 12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004374/0.5905, allocations: 2.037 MB / 0.5042 GB, free: 10.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01178/0.6023, allocations: 6.391 MB / 0.5104 GB, free: 7.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.6024, allocations: 3.938 kB / 0.5104 GB, free: 7.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.685e-06/0.6024, allocations: 0 / 0.5104 GB, free: 7.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003387/0.6027, allocations: 1.156 kB / 0.5104 GB, free: 7.566 MB / 382.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.01413/0.6169, allocations: 3.956 MB / 0.5143 GB, free: 4.789 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.6169, allocations: 12.75 kB / 0.5143 GB, free: 4.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008676/0.6256, allocations: 2.001 MB / 0.5162 GB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005644/0.6313, allocations: 2.437 MB / 0.5186 GB, free: 2.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001928/0.6315, allocations: 257.8 kB / 0.5189 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006691/0.6322, allocations: 327.1 kB / 0.5192 GB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01997/0.6522, allocations: 10.22 MB / 0.5292 GB, free: 7.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000125/0.6524, allocations: 51.53 kB / 0.5292 GB, free: 7.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004312/0.6528, allocations: 155.9 kB / 0.5294 GB, free: 7.109 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00307/0.6559, allocations: 1.908 MB / 0.5312 GB, free: 5.199 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01817/0.6741, allocations: 8.158 MB / 0.5392 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05541/0.7295, allocations: 39.46 MB / 0.5777 GB, free: 4.391 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008257/0.7379, allocations: 3.273 MB / 0.5809 GB, free: 0.9453 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001732/0.7396, allocations: 1.053 MB / 0.5819 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009136/0.7488, allocations: 5.908 MB / 0.5877 GB, free: 9.605 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.7489, allocations: 63.36 kB / 0.5878 GB, free: 9.535 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 7.384e-06/0.7489, allocations: 4 kB / 0.5878 GB, free: 9.531 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02452/0.7734, allocations: 9.47 MB / 0.597 GB, free: 15.95 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.848e-05/0.7735, allocations: 149.5 kB / 0.5972 GB, free: 15.77 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006395/0.7799, allocations: 4.063 MB / 0.6011 GB, free: 11.68 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002956/0.7803, allocations: 61.69 kB / 0.6012 GB, free: 11.62 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002376/0.7826, allocations: 3.179 MB / 0.6043 GB, free: 8.391 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008304/0.7835, allocations: 0.6366 MB / 0.6049 GB, free: 7.746 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007364/0.7842, allocations: 0.5152 MB / 0.6054 GB, free: 7.223 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.7844, allocations: 305.1 kB / 0.6057 GB, free: 6.922 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002992/0.7874, allocations: 1.652 MB / 0.6073 GB, free: 5.266 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005723/0.7931, allocations: 5.517 MB / 0.6127 GB, free: 13.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0117/0.8048, allocations: 7.788 MB / 0.6203 GB, free: 4.105 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002167/0.8051, allocations: 40 kB / 0.6204 GB, free: 4.066 MB / 494.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01599/0.8211, allocations: 6.905 MB / 0.6271 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.684e-05/0.8213, allocations: 68.06 kB / 0.6272 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001886/0.8215, allocations: 136 kB / 0.6273 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001723/0.8216, allocations: 184 kB / 0.6275 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004708/0.8264, allocations: 1.427 MB / 0.6289 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001969/0.8266, allocations: 270.9 kB / 0.6291 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004561/0.8311, allocations: 299.6 kB / 0.6294 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006987/0.8318, allocations: 377.5 kB / 0.6298 GB, free: 10.42 MB / 0.4981 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.004696/0.8366, allocations: 2.037 MB / 0.6318 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001178/0.8377, allocations: 347.5 kB / 0.6321 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003269/0.841, allocations: 1.341 MB / 0.6334 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.809e-05/0.8411, allocations: 20 kB / 0.6334 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.371e-05/0.8411, allocations: 0 / 0.6334 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/0.8411, allocations: 15.84 kB / 0.6334 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0131/0.8543, allocations: 5.833 MB / 0.6391 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-05/0.8543, allocations: 16 kB / 0.6391 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.8554, allocations: 283.5 kB / 0.6394 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-05/0.8554, allocations: 24 kB / 0.6394 GB, free: 184 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.042e-05/0.8555, allocations: 55.97 kB / 0.6395 GB, free: 128 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.52e-05/0.8556, allocations: 35.86 kB / 0.6395 GB, free: 92 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.745e-05/0.8556, allocations: 27.88 kB / 0.6395 GB, free: 64 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3212/1.177, allocations: 3.276 MB / 0.6427 GB, free: 152.1 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/1.179, allocations: 0.527 MB / 0.6433 GB, free: 152 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004532/1.179, allocations: 49.19 kB / 0.6433 GB, free: 152 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/1.18, allocations: 68.36 kB / 0.6434 GB, free: 152 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001864/1.18, allocations: 145.3 kB / 0.6435 GB, free: 152 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/1.18, allocations: 73.06 kB / 0.6436 GB, free: 152 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005108/1.186, allocations: 2.524 MB / 0.646 GB, free: 151.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.81e-07/1.186, allocations: 0 / 0.646 GB, free: 151.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006936/1.193, allocations: 0.903 MB / 0.6469 GB, free: 151.8 MB / 0.4981 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.0006541/1.193, allocations: 199.6 kB / 0.6471 GB, free: 151.7 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007238/1.201, allocations: 3.776 MB / 0.6508 GB, free: 151.3 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.664e-05/1.201, allocations: 2.938 kB / 0.6508 GB, free: 151.3 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001117/1.202, allocations: 0.749 MB / 0.6515 GB, free: 151.3 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01276/1.214, allocations: 464.5 kB / 0.652 GB, free: 151.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02313/1.238, allocations: 10.94 MB / 0.6627 GB, free: 144.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00846/1.246, allocations: 3.179 MB / 0.6658 GB, free: 143.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008664/1.255, allocations: 1.813 MB / 0.6675 GB, free: 143.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/1.256, allocations: 242 kB / 0.6678 GB, free: 143.5 MB / 0.4981 GB Notification: Performance of SimCode: time 2.104e-06/1.256, allocations: 0 / 0.6678 GB, free: 143.5 MB / 0.4981 GB Notification: Performance of Templates: time 0.07863/1.335, allocations: 27.51 MB / 0.6946 GB, free: 136.8 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches