Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, 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.001276/0.001276, 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.443/1.443, allocations: 227.4 MB / 247.1 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 63 kB / 307.1 MB, free: 0.9258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1251, allocations: 50.54 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.2531/0.3783, allocations: 34.46 MB / 392.1 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02122/0.3996, allocations: 7.725 MB / 399.9 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009269/0.4089, allocations: 146.3 kB / 400 MB, free: 12.33 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004801/0.4138, allocations: 1.848 MB / 401.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005358/0.4192, allocations: 1.519 MB / 403.4 MB, free: 10.7 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001771/0.421, allocations: 0.5719 MB / 404 MB, free: 10.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005883/0.4269, allocations: 3.398 MB / 407.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004161/0.4311, allocations: 2.721 MB / 410.1 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00289/0.434, allocations: 1.258 MB / 411.3 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003345/0.4374, allocations: 1.857 MB / 413.2 MB, free: 4.238 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008919/0.4383, allocations: 252 kB / 413.4 MB, free: 3.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002486/0.4408, allocations: 1.034 MB / 414.5 MB, free: 2.957 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001911/0.4427, allocations: 1.57 MB / 416 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002843/0.4456, allocations: 1.833 MB / 417.9 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006414/0.452, allocations: 4.545 MB / 422.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.4521, allocations: 0 / 422.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4521, allocations: 0 / 422.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002214/0.4523, allocations: 0 / 422.4 MB, free: 10.98 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.009286/0.4616, allocations: 3.995 MB / 426.4 MB, free: 6.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.4617, allocations: 12.03 kB / 426.4 MB, free: 6.906 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006563/0.4683, allocations: 1.77 MB / 428.2 MB, free: 5.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004949/0.4733, allocations: 1.881 MB / 430.1 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/0.4735, allocations: 196.8 kB / 430.3 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009302/0.4745, allocations: 255.8 kB / 430.5 MB, free: 2.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.4907, allocations: 8.439 MB / 439 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.4908, allocations: 39.59 kB / 439 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004658/0.4913, allocations: 127.9 kB / 439.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003094/0.4944, allocations: 1.695 MB / 440.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01492/0.5094, allocations: 7.11 MB / 447.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04742/0.5568, allocations: 34.15 MB / 482.1 MB, free: 13.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007925/0.5648, allocations: 3.283 MB / 485.4 MB, free: 10.08 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002183/0.5671, allocations: 1.473 MB / 486.8 MB, free: 8.594 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007624/0.5747, allocations: 4.456 MB / 491.3 MB, free: 3.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.843e-05/0.5748, allocations: 43.12 kB / 491.3 MB, free: 3.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=121): time 5.309e-06/0.5748, allocations: 0 / 491.3 MB, free: 3.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=129): time 0.03029/0.6051, allocations: 11.55 MB / 0.4911 GB, free: 8.164 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.489e-05/0.6052, allocations: 141.1 kB / 0.4912 GB, free: 7.996 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005623/0.6109, allocations: 3.709 MB / 0.4949 GB, free: 4.293 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000302/0.6112, allocations: 41.7 kB / 0.4949 GB, free: 4.246 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002347/0.6136, allocations: 2.752 MB / 0.4976 GB, free: 1.453 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007703/0.6143, allocations: 0.5171 MB / 0.4981 GB, free: 0.9297 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001549/0.6159, allocations: 1.079 MB / 0.4991 GB, free: 15.84 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.6161, allocations: 305.1 kB / 0.4994 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002741/0.6188, allocations: 1.709 MB / 0.5011 GB, free: 13.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005783/0.6246, allocations: 5.135 MB / 0.5061 GB, free: 6.961 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009984/0.6346, allocations: 7.422 MB / 0.5134 GB, free: 13.83 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001169/0.6348, allocations: 32 kB / 0.5134 GB, free: 13.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.01334/0.6481, allocations: 6.734 MB / 0.52 GB, free: 7.059 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001244/0.6483, allocations: 59.94 kB / 0.52 GB, free: 7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001991/0.6485, allocations: 124 kB / 0.5201 GB, free: 6.879 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007084/0.6492, allocations: 320.7 kB / 0.5204 GB, free: 6.562 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00442/0.6537, allocations: 1.248 MB / 0.5217 GB, free: 5.312 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.6569, allocations: 2.504 MB / 0.5241 GB, free: 2.664 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004336/0.6612, allocations: 287.7 kB / 0.5244 GB, free: 2.383 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008543/0.6621, allocations: 336 kB / 0.5247 GB, free: 2.055 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (668): * Single equations (assignments): 664 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003203/0.6653, allocations: 1.787 MB / 0.5265 GB, free: 260 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1678/0.8331, allocations: 304.3 kB / 0.5267 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005172/0.8383, allocations: 2.369 MB / 0.5291 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.822e-05/0.8384, allocations: 15.38 kB / 0.5291 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.8384, allocations: 4.281 kB / 0.5291 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.8384, allocations: 6.469 kB / 0.5291 GB, free: 143.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01132/0.8497, allocations: 5.925 MB / 0.5349 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.8498, allocations: 1.219 kB / 0.5349 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008555/0.8506, allocations: 174.3 kB / 0.535 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.8529, allocations: 0.7176 MB / 0.5357 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001578/0.8531, allocations: 27.72 kB / 0.5358 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005468/0.8586, allocations: 4.817 MB / 0.5405 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/0.8586, allocations: 1.375 kB / 0.5405 GB, free: 138.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006538/0.8652, allocations: 4.339 MB / 0.5447 GB, free: 137 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007971/0.866, allocations: 360.2 kB / 0.545 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003859/0.8664, allocations: 17.5 kB / 0.5451 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.8675, allocations: 77.55 kB / 0.5451 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.8677, allocations: 67.47 kB / 0.5452 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.07e-05/0.8678, allocations: 39.44 kB / 0.5452 GB, free: 136.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003471/0.8713, allocations: 2.314 MB / 0.5475 GB, free: 136 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.8713, allocations: 0 / 0.5475 GB, free: 136 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004392/0.8757, allocations: 0.8057 MB / 0.5483 GB, free: 135.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (96): * Single equations (assignments): 92 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004151/0.8761, allocations: 150.2 kB / 0.5484 GB, free: 135.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005918/0.8821, allocations: 4.429 MB / 0.5528 GB, free: 134.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.8821, allocations: 2.688 kB / 0.5528 GB, free: 134.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001299/0.8834, allocations: 1.114 MB / 0.5538 GB, free: 133.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002356/0.8858, allocations: 398.7 kB / 0.5542 GB, free: 133.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01128/0.8971, allocations: 9.319 MB / 0.5633 GB, free: 127.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/0.8995, allocations: 2.773 MB / 0.566 GB, free: 124.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009235/0.9005, allocations: 251.4 kB / 0.5663 GB, free: 124.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/0.9005, allocations: 0 / 0.5663 GB, free: 124.4 MB / 446.1 MB Notification: Performance of Templates: time 0.07032/0.9708, allocations: 63.7 MB / 0.6285 GB, free: 60.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches