Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 123.4 kB / 17.79 MB, free: 5.281 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002263/0.002263, allocations: 204.3 kB / 20.74 MB, free: 2.34 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.62/1.62, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 55.91 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1223, allocations: 53.33 MB / 426.8 MB, free: 4.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.229/0.3513, allocations: 10.71 MB / 437.5 MB, free: 5.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007647/0.359, allocations: 3.91 MB / 441.4 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001862/0.3608, allocations: 75.03 kB / 441.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004187/0.365, allocations: 2.252 MB / 443.8 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005582/0.3706, allocations: 1.84 MB / 445.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00251/0.3731, allocations: 0.718 MB / 446.3 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008202/0.3813, allocations: 4.309 MB / 450.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004703/0.386, allocations: 2.492 MB / 453.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0038/0.3898, allocations: 1.489 MB / 454.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004612/0.3944, allocations: 2.26 MB / 456.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001148/0.3956, allocations: 301.5 kB / 457.2 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002592/0.3982, allocations: 0.9485 MB / 458.1 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002399/0.4006, allocations: 1.84 MB / 459.9 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003577/0.4042, allocations: 2.079 MB / 462 MB, free: 9.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01081/0.415, allocations: 6.387 MB / 468.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.658e-06/0.415, allocations: 0 / 468.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.415, allocations: 2.844 kB / 468.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003433/0.4153, allocations: 0 / 468.4 MB, free: 5.34 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01353/0.4289, allocations: 4.686 MB / 473.1 MB, free: 2.039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.4289, allocations: 13.09 kB / 473.1 MB, free: 2.035 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008634/0.4375, allocations: 1.936 MB / 475.1 MB, free: 96 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005769/0.4433, allocations: 2.256 MB / 477.3 MB, free: 13.78 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.4435, allocations: 221.6 kB / 477.5 MB, free: 13.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009807/0.4445, allocations: 307.7 kB / 477.8 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01947/0.464, allocations: 9.647 MB / 487.5 MB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/0.4641, allocations: 51.58 kB / 487.5 MB, free: 2.793 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004338/0.4646, allocations: 148.4 kB / 487.7 MB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00331/0.4679, allocations: 1.923 MB / 489.6 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01756/0.4854, allocations: 7.64 MB / 497.2 MB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05268/0.5381, allocations: 37.67 MB / 0.5224 GB, free: 2.254 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007685/0.5458, allocations: 2.801 MB / 0.5251 GB, free: 15.31 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001415/0.5472, allocations: 0.7922 MB / 0.5259 GB, free: 14.51 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007523/0.5547, allocations: 3.86 MB / 0.5296 GB, free: 10.43 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.653e-05/0.5548, allocations: 47.16 kB / 0.5297 GB, free: 10.38 MB / 446.1 MB Notification: Performance of pre-optimization done (n=134): time 3.507e-06/0.5548, allocations: 0 / 0.5297 GB, free: 10.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=152): time 0.02484/0.5796, allocations: 9.278 MB / 0.5387 GB, free: 1.004 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001073/0.5797, allocations: 145.5 kB / 0.5389 GB, free: 0.832 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006249/0.586, allocations: 3.921 MB / 0.5427 GB, free: 12.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000233/0.5862, allocations: 45.7 kB / 0.5428 GB, free: 12.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002868/0.5891, allocations: 3.205 MB / 0.5459 GB, free: 9.645 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007748/0.5899, allocations: 0.632 MB / 0.5465 GB, free: 9.008 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001639/0.5915, allocations: 1.175 MB / 0.5477 GB, free: 7.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.5916, allocations: 309.1 kB / 0.5479 GB, free: 7.516 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002776/0.5944, allocations: 1.585 MB / 0.5495 GB, free: 5.926 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00644/0.6009, allocations: 5.358 MB / 0.5547 GB, free: 14.67 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/0.6117, allocations: 7.559 MB / 0.5621 GB, free: 5.23 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001095/0.6118, allocations: 36 kB / 0.5621 GB, free: 5.195 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01407/0.6259, allocations: 6.687 MB / 0.5687 GB, free: 14.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001044/0.626, allocations: 64 kB / 0.5687 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001722/0.6261, allocations: 132 kB / 0.5689 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000205/0.6264, allocations: 176 kB / 0.569 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004676/0.631, allocations: 1.391 MB / 0.5704 GB, free: 12.76 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002576/0.6313, allocations: 270.9 kB / 0.5706 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004042/0.6353, allocations: 283.7 kB / 0.5709 GB, free: 12.22 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007731/0.6361, allocations: 368 kB / 0.5713 GB, free: 11.86 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * 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.00412/0.6402, allocations: 1.982 MB / 0.5732 GB, free: 9.863 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009091/0.6411, allocations: 354.1 kB / 0.5735 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009299/0.6421, allocations: 401.3 kB / 0.5739 GB, free: 9.117 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.831e-05/0.6421, allocations: 19.94 kB / 0.5739 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.6421, allocations: 0 / 0.5739 GB, free: 9.098 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.6421, allocations: 7.984 kB / 0.5739 GB, free: 9.09 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/0.6528, allocations: 5.757 MB / 0.5796 GB, free: 3.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.759e-05/0.6529, allocations: 16 kB / 0.5796 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/0.6539, allocations: 279.5 kB / 0.5799 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.011e-05/0.6539, allocations: 28 kB / 0.5799 GB, free: 2.695 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.221e-05/0.654, allocations: 47.98 kB / 0.5799 GB, free: 2.648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.694e-05/0.6541, allocations: 35.86 kB / 0.58 GB, free: 2.613 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.267e-05/0.6541, allocations: 31.88 kB / 0.58 GB, free: 2.582 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004455/0.6586, allocations: 3.237 MB / 0.5832 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009227/0.6595, allocations: 430.5 kB / 0.5836 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003194/0.6598, allocations: 51.98 kB / 0.5836 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.6609, allocations: 59.95 kB / 0.5837 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.6611, allocations: 155.3 kB / 0.5838 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-05/0.6612, allocations: 67.94 kB / 0.5839 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004039/0.6653, allocations: 2.43 MB / 0.5863 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6653, allocations: 0 / 0.5863 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005012/0.6703, allocations: 0.8515 MB / 0.5871 GB, free: 11.06 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,p2.s,p2.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 (142): * Single equations (assignments): 139 * 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.0004231/0.6707, allocations: 195.2 kB / 0.5873 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.006475/0.6772, allocations: 3.555 MB / 0.5907 GB, free: 7.336 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.617e-05/0.6772, allocations: 4 kB / 0.5907 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.6784, allocations: 0.6959 MB / 0.5914 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002992/0.6814, allocations: 456.9 kB / 0.5919 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01673/0.6981, allocations: 8.632 MB / 0.6003 GB, free: 13.28 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004228/0.7023, allocations: 3.102 MB / 0.6033 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004357/0.7067, allocations: 1.768 MB / 0.605 GB, free: 8.363 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006315/0.7073, allocations: 231.4 kB / 0.6053 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of SimCode: time 1.042e-06/0.7073, allocations: 0 / 0.6053 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of Templates: time 0.2643/0.9716, allocations: 24.12 MB / 0.6288 GB, free: 158.6 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.493541684001684]