Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001381/0.001381, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00137/0.00137, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.46/1.46, allocations: 227.4 MB / 247.1 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001881/0.00188, allocations: 67.33 kB / 307.2 MB, free: 0.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.108, allocations: 50.53 MB / 357.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2142/0.3222, allocations: 38.41 MB / 396.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02154/0.3438, allocations: 8.315 MB / 404.4 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0101/0.3539, allocations: 163.3 kB / 404.6 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00501/0.359, allocations: 2.125 MB / 406.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005912/0.365, allocations: 1.679 MB / 408.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001983/0.367, allocations: 0.6705 MB / 409 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005952/0.3729, allocations: 4.327 MB / 413.4 MB, free: 3.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004114/0.3771, allocations: 3.053 MB / 416.4 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002493/0.3796, allocations: 1.495 MB / 417.9 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003163/0.3828, allocations: 2.306 MB / 420.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005549/0.3833, allocations: 292 kB / 420.5 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001802/0.3851, allocations: 0.9284 MB / 421.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.387, allocations: 1.823 MB / 423.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002285/0.3893, allocations: 2.101 MB / 425.3 MB, free: 7.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005463/0.3948, allocations: 4.959 MB / 430.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.3948, allocations: 0 / 430.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3948, allocations: 0 / 430.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000121/0.3949, allocations: 4 kB / 430.3 MB, free: 2.863 MB / 334.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.009796/0.4047, allocations: 4.567 MB / 434.9 MB, free: 14.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.4048, allocations: 12.03 kB / 434.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007574/0.4124, allocations: 1.918 MB / 436.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004439/0.4168, allocations: 2.187 MB / 439 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002104/0.4171, allocations: 237.6 kB / 439.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006379/0.4177, allocations: 295.8 kB / 439.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.017/0.4347, allocations: 9.651 MB / 449.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.4349, allocations: 43.59 kB / 449.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003948/0.4353, allocations: 151.8 kB / 449.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003025/0.4383, allocations: 1.919 MB / 451.3 MB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01529/0.4536, allocations: 7.653 MB / 458.9 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04532/0.499, allocations: 37.75 MB / 496.7 MB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007056/0.5061, allocations: 2.901 MB / 499.6 MB, free: 11.35 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.5075, allocations: 0.8652 MB / 0.4887 GB, free: 10.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005934/0.5134, allocations: 3.838 MB / 0.4925 GB, free: 6.414 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.26e-05/0.5135, allocations: 51.16 kB / 0.4925 GB, free: 6.355 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 2.564e-06/0.5135, allocations: 0 / 0.4925 GB, free: 6.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.03071/0.5442, allocations: 9.057 MB / 0.5014 GB, free: 13.18 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.5444, allocations: 145.5 kB / 0.5015 GB, free: 13.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008208/0.5526, allocations: 3.912 MB / 0.5053 GB, free: 9.113 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002405/0.5529, allocations: 49.7 kB / 0.5054 GB, free: 9.059 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003303/0.5562, allocations: 3.078 MB / 0.5084 GB, free: 5.938 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008889/0.5571, allocations: 0.6057 MB / 0.509 GB, free: 5.324 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002076/0.5592, allocations: 1.163 MB / 0.5101 GB, free: 4.148 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.5593, allocations: 309 kB / 0.5104 GB, free: 3.844 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003868/0.5632, allocations: 1.589 MB / 0.5119 GB, free: 2.25 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006915/0.5702, allocations: 5.358 MB / 0.5172 GB, free: 10.99 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009503/0.5797, allocations: 7.554 MB / 0.5245 GB, free: 1.559 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-05/0.5798, allocations: 40 kB / 0.5246 GB, free: 1.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.1764/0.7563, allocations: 6.663 MB / 0.5311 GB, free: 140.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.142e-05/0.7564, allocations: 62.59 kB / 0.5312 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001511/0.7565, allocations: 134.2 kB / 0.5313 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002048/0.7568, allocations: 177.1 kB / 0.5314 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0039/0.7607, allocations: 1.386 MB / 0.5328 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002255/0.7609, allocations: 264.4 kB / 0.5331 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/0.7645, allocations: 292 kB / 0.5333 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004899/0.765, allocations: 366.4 kB / 0.5337 GB, free: 140.1 MB / 446.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.002788/0.7678, allocations: 1.977 MB / 0.5356 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004959/0.7683, allocations: 334.9 kB / 0.5359 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006342/0.7689, allocations: 401.2 kB / 0.5363 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.7689, allocations: 20.86 kB / 0.5363 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/0.769, allocations: 1.062 kB / 0.5363 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.606e-05/0.769, allocations: 8.125 kB / 0.5363 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008296/0.7773, allocations: 5.759 MB / 0.542 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.247e-05/0.7773, allocations: 17.66 kB / 0.542 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009501/0.7783, allocations: 284.2 kB / 0.5423 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.77e-05/0.7783, allocations: 25.09 kB / 0.5423 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.443e-05/0.7784, allocations: 48.41 kB / 0.5423 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.736e-05/0.7785, allocations: 35.69 kB / 0.5424 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-05/0.7785, allocations: 32.95 kB / 0.5424 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003317/0.7818, allocations: 3.228 MB / 0.5455 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006419/0.7825, allocations: 408.4 kB / 0.5459 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002956/0.7828, allocations: 53.58 kB / 0.546 GB, free: 134.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/0.7838, allocations: 58.55 kB / 0.546 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.7839, allocations: 146.6 kB / 0.5462 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.749e-05/0.784, allocations: 66 kB / 0.5462 GB, free: 134.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002888/0.7869, allocations: 2.435 MB / 0.5486 GB, free: 133.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7869, allocations: 0 / 0.5486 GB, free: 133.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004113/0.7911, allocations: 0.849 MB / 0.5495 GB, free: 133.3 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.0003305/0.7914, allocations: 207.3 kB / 0.5496 GB, free: 133.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004737/0.7961, allocations: 3.822 MB / 0.5534 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.102e-05/0.7962, allocations: 3.344 kB / 0.5534 GB, free: 131.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008332/0.797, allocations: 0.7418 MB / 0.5541 GB, free: 131.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.7994, allocations: 449.9 kB / 0.5545 GB, free: 131.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/0.8114, allocations: 10.91 MB / 0.5652 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002376/0.8138, allocations: 3.089 MB / 0.5682 GB, free: 119.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006693/0.8145, allocations: 281.5 kB / 0.5685 GB, free: 119.1 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/0.8145, allocations: 0 / 0.5685 GB, free: 119.1 MB / 446.1 MB Notification: Performance of Templates: time 0.05821/0.8727, allocations: 50.96 MB / 0.6182 GB, free: 68.49 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches