Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001274/0.001274, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.414/1.414, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 68.8 kB / 307.9 MB, free: 484 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1188, allocations: 50.54 MB / 358.4 MB, free: 13.92 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.01397/0.1328, allocations: 10.66 MB / 369.1 MB, free: 3.195 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.202/0.3349, allocations: 3.887 MB / 373 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001909/0.3369, allocations: 65.12 kB / 373.1 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004716/0.3416, allocations: 2.219 MB / 375.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.3467, allocations: 1.799 MB / 377.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001823/0.3486, allocations: 0.7098 MB / 377.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007639/0.3562, allocations: 4.308 MB / 382.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004524/0.3608, allocations: 2.891 MB / 385 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002819/0.3636, allocations: 1.464 MB / 386.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003122/0.3668, allocations: 2.083 MB / 388.5 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.3678, allocations: 293.5 kB / 388.8 MB, free: 5.852 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002251/0.3701, allocations: 0.91 MB / 389.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002899/0.373, allocations: 1.791 MB / 391.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003779/0.3768, allocations: 2.079 MB / 393.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00716/0.384, allocations: 6.116 MB / 399.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.384, allocations: 0 / 399.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.384, allocations: 0 / 399.7 MB, free: 14.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002366/0.3843, allocations: 4 kB / 399.7 MB, free: 14.89 MB / 318.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.01192/0.3962, allocations: 4.561 MB / 404.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.3963, allocations: 8.031 kB / 404.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008113/0.4044, allocations: 1.916 MB / 406.2 MB, free: 8.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005118/0.4096, allocations: 2.198 MB / 408.4 MB, free: 6.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.4098, allocations: 229.8 kB / 408.6 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.4109, allocations: 295.6 kB / 408.9 MB, free: 6.152 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01839/0.4293, allocations: 9.651 MB / 418.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001419/0.4295, allocations: 47.53 kB / 418.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004998/0.43, allocations: 151.2 kB / 418.8 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003395/0.4334, allocations: 1.924 MB / 420.7 MB, free: 9.773 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.451, allocations: 7.645 MB / 428.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04876/0.4998, allocations: 37.75 MB / 466.1 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007272/0.5071, allocations: 2.891 MB / 469 MB, free: 8.336 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001493/0.5086, allocations: 0.8787 MB / 469.8 MB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006974/0.5156, allocations: 3.845 MB / 473.7 MB, free: 3.406 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.186e-05/0.5157, allocations: 47.22 kB / 473.7 MB, free: 3.352 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 7.124e-06/0.5157, allocations: 0 / 473.7 MB, free: 3.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=152): time 0.02337/0.5391, allocations: 9.057 MB / 482.8 MB, free: 10.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.5393, allocations: 141.5 kB / 482.9 MB, free: 10.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00643/0.5457, allocations: 3.916 MB / 486.9 MB, free: 6.113 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000262/0.546, allocations: 45.7 kB / 486.9 MB, free: 6.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002814/0.5488, allocations: 3.079 MB / 490 MB, free: 2.988 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008706/0.5497, allocations: 0.612 MB / 490.6 MB, free: 2.379 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001748/0.5515, allocations: 1.161 MB / 491.7 MB, free: 1.207 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001346/0.5516, allocations: 305.1 kB / 492 MB, free: 0.9062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002862/0.5545, allocations: 1.589 MB / 493.6 MB, free: 15.31 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006379/0.5609, allocations: 5.358 MB / 499 MB, free: 8.055 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01006/0.571, allocations: 7.558 MB / 0.4947 GB, free: 14.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001256/0.5712, allocations: 47.98 kB / 0.4947 GB, free: 14.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01373/0.5849, allocations: 6.658 MB / 0.5012 GB, free: 7.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/0.5851, allocations: 64 kB / 0.5013 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001907/0.5853, allocations: 136 kB / 0.5014 GB, free: 7.715 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000199/0.5855, allocations: 176 kB / 0.5016 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004568/0.59, allocations: 1.38 MB / 0.5029 GB, free: 6.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002613/0.5903, allocations: 267.2 kB / 0.5032 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004188/0.5945, allocations: 291.6 kB / 0.5035 GB, free: 5.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009301/0.5955, allocations: 367 kB / 0.5038 GB, free: 5.258 MB / 430.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.003872/0.5994, allocations: 1.974 MB / 0.5057 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007223/0.6001, allocations: 335.7 kB / 0.5061 GB, free: 2.941 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008667/0.601, allocations: 397.5 kB / 0.5064 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.124e-05/0.601, allocations: 23.98 kB / 0.5065 GB, free: 2.531 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.601, allocations: 0 / 0.5065 GB, free: 2.531 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.6011, allocations: 3.984 kB / 0.5065 GB, free: 2.527 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/0.6113, allocations: 5.761 MB / 0.5121 GB, free: 12.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.924e-05/0.6113, allocations: 19.94 kB / 0.5121 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.6124, allocations: 280.3 kB / 0.5124 GB, free: 12.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.924e-05/0.6124, allocations: 31.94 kB / 0.5124 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.385e-05/0.6126, allocations: 48 kB / 0.5125 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.261e-05/0.6126, allocations: 39.86 kB / 0.5125 GB, free: 12.07 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.048e-05/0.6126, allocations: 27.88 kB / 0.5125 GB, free: 12.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004327/0.6169, allocations: 3.222 MB / 0.5157 GB, free: 8.559 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.618, allocations: 404.6 kB / 0.5161 GB, free: 8.141 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004126/0.6184, allocations: 55.98 kB / 0.5161 GB, free: 8.086 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001181/0.6196, allocations: 63.23 kB / 0.5162 GB, free: 8.027 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.6199, allocations: 155.3 kB / 0.5163 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/0.62, allocations: 64.47 kB / 0.5164 GB, free: 7.812 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004417/0.6244, allocations: 2.426 MB / 0.5187 GB, free: 5.406 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.685e-06/0.6244, allocations: 4 kB / 0.5188 GB, free: 5.402 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005345/0.6298, allocations: 0.8515 MB / 0.5196 GB, free: 4.551 MB / 446.1 MB 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.0005171/0.6303, allocations: 197.2 kB / 0.5198 GB, free: 4.352 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007371/0.6377, allocations: 3.834 MB / 0.5235 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-05/0.6378, allocations: 192 / 0.5235 GB, free: 0.5469 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1628/0.8006, allocations: 0.7324 MB / 0.5242 GB, free: 142.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003101/0.8037, allocations: 460.2 kB / 0.5247 GB, free: 142.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.8197, allocations: 9.023 MB / 0.5335 GB, free: 139.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004529/0.8243, allocations: 3.091 MB / 0.5365 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001129/0.8254, allocations: 278.8 kB / 0.5368 GB, free: 137.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.8254, allocations: 0 / 0.5368 GB, free: 137.9 MB / 446.1 MB Notification: Performance of Templates: time 0.07338/0.8988, allocations: 50.96 MB / 0.5865 GB, free: 99.57 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches