Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001055/0.001055, allocations: 93.03 kB / 17.35 MB, free: 6.344 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.001292/0.001292, allocations: 171.5 kB / 18.25 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.3 MB / 242.3 MB, free: 14.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2136/0.2136, allocations: 44.24 MB / 337.7 MB, free: 2.445 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003321, allocations: 15.94 kB / 410.3 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1439/0.1442, allocations: 61.93 MB / 472.3 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03996/0.1842, allocations: 41.67 MB / 0.5019 GB, free: 3.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3227/0.507, allocations: 9.18 MB / 0.5108 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009256/0.5163, allocations: 180.6 kB / 0.511 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.5185, allocations: 432.2 kB / 0.5114 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007579/0.5261, allocations: 1.764 MB / 0.5132 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002547/0.5287, allocations: 0.7162 MB / 0.5138 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01171/0.5404, allocations: 6.11 MB / 0.5198 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008967/0.5494, allocations: 4.557 MB / 0.5243 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003736/0.5532, allocations: 1.174 MB / 0.5254 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004643/0.5578, allocations: 2.103 MB / 0.5275 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001001/0.5589, allocations: 151.9 kB / 0.5276 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.5617, allocations: 0.8511 MB / 0.5284 GB, free: 6.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002084/0.5638, allocations: 1.758 MB / 0.5302 GB, free: 5.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002678/0.5665, allocations: 2.033 MB / 0.5321 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007159/0.5736, allocations: 6.376 MB / 0.5384 GB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.5737, allocations: 0 / 0.5384 GB, free: 296 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.5737, allocations: 3.984 kB / 0.5384 GB, free: 292 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002694/0.574, allocations: 0 / 0.5384 GB, free: 292 kB / 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.00924/0.5832, allocations: 3.96 MB / 0.5422 GB, free: 13.53 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.5833, allocations: 13.45 kB / 0.5423 GB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00815/0.5914, allocations: 1.992 MB / 0.5442 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006043/0.5975, allocations: 2.34 MB / 0.5465 GB, free: 9.695 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002703/0.5978, allocations: 256.9 kB / 0.5467 GB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/0.5992, allocations: 328.6 kB / 0.547 GB, free: 9.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02097/0.6202, allocations: 10.21 MB / 0.557 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003606/0.6206, allocations: 55.52 kB / 0.5571 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001798/0.6224, allocations: 157.4 kB / 0.5572 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003499/0.626, allocations: 1.903 MB / 0.5591 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02004/0.646, allocations: 8.164 MB / 0.5671 GB, free: 4.055 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05738/0.7034, allocations: 39.44 MB / 0.6056 GB, free: 11.62 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008626/0.7121, allocations: 3.287 MB / 0.6088 GB, free: 8.18 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001855/0.714, allocations: 1.061 MB / 0.6098 GB, free: 7.109 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01061/0.7246, allocations: 5.907 MB / 0.6156 GB, free: 0.875 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.041e-05/0.7248, allocations: 47.5 kB / 0.6156 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 5.911e-06/0.7248, allocations: 0 / 0.6156 GB, free: 0.8203 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02581/0.7506, allocations: 9.445 MB / 0.6249 GB, free: 7.27 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/0.7507, allocations: 149.5 kB / 0.625 GB, free: 7.09 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008441/0.7592, allocations: 4.051 MB / 0.6289 GB, free: 3.012 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002983/0.7595, allocations: 45.7 kB / 0.629 GB, free: 2.961 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002892/0.7624, allocations: 3.179 MB / 0.6321 GB, free: 15.78 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009386/0.7634, allocations: 0.6399 MB / 0.6327 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001155/0.7646, allocations: 0.519 MB / 0.6332 GB, free: 14.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.7647, allocations: 309.1 kB / 0.6335 GB, free: 14.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003595/0.7683, allocations: 1.652 MB / 0.6351 GB, free: 12.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00688/0.7752, allocations: 5.509 MB / 0.6405 GB, free: 5.215 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/0.7862, allocations: 7.784 MB / 0.6481 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002087/0.7865, allocations: 36 kB / 0.6482 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01584/0.8023, allocations: 6.906 MB / 0.6549 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001887/0.8026, allocations: 64 kB / 0.655 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002325/0.8028, allocations: 140 kB / 0.6551 GB, free: 4.367 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002368/0.8031, allocations: 180 kB / 0.6553 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004932/0.808, allocations: 1.435 MB / 0.6567 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002989/0.8083, allocations: 274.9 kB / 0.6569 GB, free: 2.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005116/0.8135, allocations: 291.6 kB / 0.6572 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001039/0.8145, allocations: 391.7 kB / 0.6576 GB, free: 1.82 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.005361/0.8199, allocations: 2.029 MB / 0.6596 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/0.821, allocations: 351.2 kB / 0.6599 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003289/0.8244, allocations: 1.337 MB / 0.6612 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-05/0.8244, allocations: 19.98 kB / 0.6612 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/0.8244, allocations: 4 kB / 0.6612 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.8244, allocations: 3.984 kB / 0.6612 GB, free: 14.05 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01619/0.8406, allocations: 5.828 MB / 0.6669 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.439e-05/0.8407, allocations: 16 kB / 0.6669 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/0.8418, allocations: 284.3 kB / 0.6672 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.002e-05/0.8419, allocations: 24 kB / 0.6672 GB, free: 7.625 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.842, allocations: 59.5 kB / 0.6673 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.891e-05/0.8421, allocations: 32.39 kB / 0.6673 GB, free: 7.539 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.798e-05/0.8421, allocations: 27.88 kB / 0.6673 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004811/0.8469, allocations: 3.282 MB / 0.6705 GB, free: 3.977 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001472/0.8484, allocations: 424.5 kB / 0.671 GB, free: 3.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009055/0.8493, allocations: 47.98 kB / 0.671 GB, free: 3.492 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001875/0.8512, allocations: 71.83 kB / 0.6711 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.8514, allocations: 147.4 kB / 0.6712 GB, free: 3.277 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.8516, allocations: 64 kB / 0.6713 GB, free: 3.215 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005876/0.8575, allocations: 2.507 MB / 0.6737 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8575, allocations: 0 / 0.6737 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00683/0.8643, allocations: 0.9172 MB / 0.6746 GB, free: 15.78 MB / 0.5294 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.0007175/0.8651, allocations: 189.9 kB / 0.6748 GB, free: 15.59 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007707/0.8728, allocations: 3.78 MB / 0.6785 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.706e-05/0.8728, allocations: 4 kB / 0.6785 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001208/0.8741, allocations: 0.7423 MB / 0.6792 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01317/0.8872, allocations: 462.2 kB / 0.6797 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02198/0.9093, allocations: 10.88 MB / 0.6903 GB, free: 15.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005676/0.915, allocations: 3.177 MB / 0.6934 GB, free: 12.29 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004856/0.9199, allocations: 1.816 MB / 0.6952 GB, free: 10.47 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006093/0.9205, allocations: 243.4 kB / 0.6954 GB, free: 10.23 MB / 0.545 GB Notification: Performance of SimCode: time 1.112e-06/0.9205, allocations: 0 / 0.6954 GB, free: 10.23 MB / 0.545 GB Notification: Performance of Templates: time 0.3388/1.259, allocations: 27.41 MB / 0.7222 GB, free: 192.9 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches