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.001072/0.001072, allocations: 97.64 kB / 18.01 MB, free: 5.734 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.001031/0.001031, allocations: 177.6 kB / 18.91 MB, free: 4.871 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.346/1.346, allocations: 223.3 MB / 243 MB, free: 208 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1984/0.1984, allocations: 44.24 MB / 338.3 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 15.08 kB / 411 MB, free: 27.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1215, allocations: 61.92 MB / 472.9 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03828/0.1598, allocations: 41.66 MB / 0.5025 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2754/0.4352, allocations: 9.187 MB / 0.5115 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009039/0.4443, allocations: 180.2 kB / 0.5117 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001968/0.4463, allocations: 438 kB / 0.5121 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005727/0.4521, allocations: 1.762 MB / 0.5138 GB, free: 10.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002285/0.4544, allocations: 0.7138 MB / 0.5145 GB, free: 9.988 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.008849/0.4632, allocations: 6.121 MB / 0.5205 GB, free: 9.965 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00717/0.4704, allocations: 4.559 MB / 0.5249 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003097/0.4736, allocations: 1.167 MB / 0.5261 GB, free: 8.348 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003275/0.4769, allocations: 2.105 MB / 0.5281 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000868/0.4778, allocations: 149.6 kB / 0.5283 GB, free: 7.312 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002353/0.4801, allocations: 0.8471 MB / 0.5291 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002074/0.4822, allocations: 1.758 MB / 0.5308 GB, free: 5.996 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002449/0.4847, allocations: 2.039 MB / 0.5328 GB, free: 4.488 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005105/0.4898, allocations: 5.22 MB / 0.5379 GB, free: 1.148 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.4898, allocations: 0 / 0.5379 GB, free: 1.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4899, allocations: 2.469 kB / 0.5379 GB, free: 1.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001765/0.49, allocations: 0 / 0.5379 GB, free: 1.148 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.007576/0.4976, allocations: 3.958 MB / 0.5418 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.4977, allocations: 9.719 kB / 0.5418 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007609/0.5053, allocations: 1.995 MB / 0.5437 GB, free: 13.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004907/0.5102, allocations: 2.344 MB / 0.546 GB, free: 10.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/0.5105, allocations: 247.1 kB / 0.5462 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00081/0.5113, allocations: 339 kB / 0.5466 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01923/0.5305, allocations: 10.22 MB / 0.5566 GB, free: 15.5 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001937/0.5308, allocations: 43.59 kB / 0.5566 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009319/0.5317, allocations: 156.2 kB / 0.5567 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003006/0.5347, allocations: 1.912 MB / 0.5586 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01804/0.5528, allocations: 8.152 MB / 0.5666 GB, free: 5.27 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05125/0.6041, allocations: 39.44 MB / 0.6051 GB, free: 12.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008663/0.6128, allocations: 3.282 MB / 0.6083 GB, free: 9.395 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002015/0.6149, allocations: 1.062 MB / 0.6093 GB, free: 8.324 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009513/0.6244, allocations: 5.904 MB / 0.6151 GB, free: 2.094 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.6245, allocations: 55.55 kB / 0.6151 GB, free: 2.031 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 5.14e-06/0.6245, allocations: 0 / 0.6151 GB, free: 2.031 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02471/0.6492, allocations: 9.449 MB / 0.6244 GB, free: 8.473 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.936e-05/0.6494, allocations: 141.5 kB / 0.6245 GB, free: 8.301 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007198/0.6566, allocations: 4.043 MB / 0.6285 GB, free: 4.23 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002356/0.6569, allocations: 49.7 kB / 0.6285 GB, free: 4.176 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002605/0.6595, allocations: 3.18 MB / 0.6316 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008859/0.6604, allocations: 0.6396 MB / 0.6322 GB, free: 372 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/0.6615, allocations: 0.5235 MB / 0.6327 GB, free: 15.83 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.6617, allocations: 305.1 kB / 0.633 GB, free: 15.53 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003321/0.665, allocations: 1.652 MB / 0.6346 GB, free: 13.87 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006069/0.6711, allocations: 5.513 MB / 0.64 GB, free: 6.426 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009466/0.6806, allocations: 7.786 MB / 0.6476 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001532/0.6808, allocations: 36 kB / 0.6477 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01444/0.6952, allocations: 6.904 MB / 0.6544 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002028/0.6955, allocations: 64 kB / 0.6545 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002678/0.6958, allocations: 136 kB / 0.6546 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002531/0.696, allocations: 184.8 kB / 0.6548 GB, free: 5.402 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004923/0.701, allocations: 1.431 MB / 0.6562 GB, free: 3.969 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002983/0.7013, allocations: 270.9 kB / 0.6564 GB, free: 3.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004499/0.7058, allocations: 299.5 kB / 0.6567 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009773/0.7068, allocations: 383.2 kB / 0.6571 GB, free: 3.039 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.004746/0.7116, allocations: 2.033 MB / 0.6591 GB, free: 0.9922 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009376/0.7125, allocations: 351.5 kB / 0.6594 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003244/0.7158, allocations: 1.342 MB / 0.6607 GB, free: 15.29 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.723e-05/0.7158, allocations: 16 kB / 0.6607 GB, free: 15.27 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.7159, allocations: 4 kB / 0.6607 GB, free: 15.27 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.7159, allocations: 7.984 kB / 0.6607 GB, free: 15.26 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01314/0.729, allocations: 5.825 MB / 0.6664 GB, free: 9.156 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.375e-05/0.7291, allocations: 16.94 kB / 0.6664 GB, free: 9.141 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.7302, allocations: 279.5 kB / 0.6667 GB, free: 8.867 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.228e-05/0.7303, allocations: 28 kB / 0.6667 GB, free: 8.84 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001438/0.7304, allocations: 51.98 kB / 0.6668 GB, free: 8.789 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.964e-05/0.7305, allocations: 35.86 kB / 0.6668 GB, free: 8.754 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-05/0.7305, allocations: 27.88 kB / 0.6669 GB, free: 8.727 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00434/0.7348, allocations: 3.282 MB / 0.6701 GB, free: 5.195 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001211/0.7361, allocations: 420.5 kB / 0.6705 GB, free: 4.762 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007806/0.7369, allocations: 47.98 kB / 0.6705 GB, free: 4.715 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/0.7386, allocations: 63.95 kB / 0.6706 GB, free: 4.652 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.7388, allocations: 147.4 kB / 0.6707 GB, free: 4.508 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001327/0.739, allocations: 71.92 kB / 0.6708 GB, free: 4.438 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005124/0.7441, allocations: 2.511 MB / 0.6732 GB, free: 1.914 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.91e-07/0.7441, allocations: 4 kB / 0.6732 GB, free: 1.91 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005613/0.7498, allocations: 0.9062 MB / 0.6741 GB, free: 1.004 MB / 0.5138 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.0005884/0.7504, allocations: 203.8 kB / 0.6743 GB, free: 0.8008 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.007125/0.7575, allocations: 3.776 MB / 0.678 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.645e-05/0.7576, allocations: 0 / 0.678 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.7588, allocations: 0.7505 MB / 0.6787 GB, free: 12.31 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01214/0.771, allocations: 469.7 kB / 0.6792 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02063/0.7916, allocations: 11.31 MB / 0.6902 GB, free: 272 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005476/0.7972, allocations: 3.169 MB / 0.6933 GB, free: 13.07 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009459/0.7981, allocations: 287.4 kB / 0.6936 GB, free: 12.79 MB / 0.545 GB Notification: Performance of SimCode: time 1.563e-06/0.7981, allocations: 0 / 0.6936 GB, free: 12.79 MB / 0.545 GB Notification: Performance of Templates: time 0.3543/1.152, allocations: 52.32 MB / 0.7447 GB, free: 178.2 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/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_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches