Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 113.3 kB / 18.4 MB, free: 4.566 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.001599/0.001599, allocations: 189.2 kB / 19.33 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 51.92 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08852/0.08972, allocations: 46.61 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.21/0.2998, allocations: 7.448 MB / 383.3 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00631/0.3061, allocations: 3.237 MB / 386.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001123/0.3073, allocations: 37.25 kB / 386.5 MB, free: 7.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00207/0.3094, allocations: 1.023 MB / 387.6 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003511/0.3129, allocations: 1.361 MB / 388.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.3141, allocations: 464.7 kB / 389.4 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004055/0.3182, allocations: 2.641 MB / 392 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002192/0.3204, allocations: 1.531 MB / 393.5 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001527/0.3219, allocations: 0.8458 MB / 394.4 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001673/0.3236, allocations: 1.219 MB / 395.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004165/0.324, allocations: 170.3 kB / 395.8 MB, free: 4.387 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002337/0.3264, allocations: 1.031 MB / 396.8 MB, free: 4.145 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.3275, allocations: 1.113 MB / 397.9 MB, free: 3.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.3286, allocations: 1.307 MB / 399.2 MB, free: 2.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004909/0.3336, allocations: 4.362 MB / 403.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.3336, allocations: 5.562 kB / 403.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3336, allocations: 0 / 403.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.952e-05/0.3337, allocations: 0 / 403.6 MB, free: 15.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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.007236/0.3409, allocations: 3.053 MB / 406.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.341, allocations: 9.25 kB / 406.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007027/0.348, allocations: 1.727 MB / 408.4 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003165/0.3512, allocations: 1.456 MB / 409.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.3514, allocations: 141.5 kB / 410 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006952/0.3521, allocations: 258.4 kB / 410.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.3641, allocations: 6.661 MB / 416.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.3642, allocations: 27.81 kB / 416.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000408/0.3646, allocations: 87.89 kB / 417 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002251/0.3669, allocations: 1.359 MB / 418.4 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01175/0.3787, allocations: 6.029 MB / 424.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03517/0.4139, allocations: 25.55 MB / 449.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007441/0.4214, allocations: 2.659 MB / 452.6 MB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.4229, allocations: 1.028 MB / 453.6 MB, free: 236 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006625/0.4295, allocations: 3.903 MB / 457.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.864e-05/0.4296, allocations: 47.12 kB / 457.6 MB, free: 12.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.999e-06/0.4296, allocations: 4 kB / 457.6 MB, free: 12.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.03037/0.46, allocations: 10.29 MB / 467.9 MB, free: 1.551 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001469/0.4615, allocations: 1.683 MB / 469.6 MB, free: 15.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00589/0.4674, allocations: 2.733 MB / 472.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/0.4679, allocations: 41.7 kB / 472.3 MB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002073/0.4699, allocations: 2.091 MB / 474.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008705/0.4708, allocations: 0.5016 MB / 474.9 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002423/0.4733, allocations: 0.9203 MB / 475.8 MB, free: 9.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4734, allocations: 313.1 kB / 476.1 MB, free: 9.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003122/0.4765, allocations: 1.649 MB / 477.8 MB, free: 7.355 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005107/0.4817, allocations: 4.456 MB / 482.3 MB, free: 1.492 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008687/0.4904, allocations: 6.542 MB / 488.8 MB, free: 9.555 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.522e-05/0.4905, allocations: 28 kB / 488.8 MB, free: 9.527 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02276/0.5133, allocations: 7.998 MB / 496.8 MB, free: 1.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000134/0.5134, allocations: 51.98 kB / 496.9 MB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01247/0.5259, allocations: 3.488 MB / 0.4886 GB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01264/0.5386, allocations: 2.585 MB / 0.4912 GB, free: 11.36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003538/0.5422, allocations: 1.014 MB / 0.4921 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01562/0.5578, allocations: 9.682 MB / 0.5016 GB, free: 392 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004129/0.562, allocations: 335.4 kB / 0.5019 GB, free: 56 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009848/0.563, allocations: 284.1 kB / 0.5022 GB, free: 15.78 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003482/0.5665, allocations: 1.427 MB / 0.5036 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000719/0.5672, allocations: 229 kB / 0.5038 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007326/0.5746, allocations: 2.846 MB / 0.5066 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00626/0.5808, allocations: 2.509 MB / 0.509 GB, free: 8.707 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.478e-05/0.5809, allocations: 8 kB / 0.509 GB, free: 8.699 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.438e-05/0.581, allocations: 7.984 kB / 0.509 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01639/0.5974, allocations: 6.863 MB / 0.5157 GB, free: 1.734 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.079e-05/0.5974, allocations: 7.984 kB / 0.5158 GB, free: 1.727 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008849/0.5983, allocations: 175.7 kB / 0.5159 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005009/0.6033, allocations: 1.438 MB / 0.5173 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001657/0.6035, allocations: 35.97 kB / 0.5174 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0107/0.6142, allocations: 7.921 MB / 0.5251 GB, free: 7.879 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001089/0.6153, allocations: 1.537 MB / 0.5266 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009138/0.6245, allocations: 4.857 MB / 0.5313 GB, free: 1.293 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008101/0.6253, allocations: 297.9 kB / 0.5316 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006208/0.626, allocations: 24 kB / 0.5316 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001556/0.6275, allocations: 111.8 kB / 0.5318 GB, free: 0.8477 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002741/0.6278, allocations: 84.36 kB / 0.5318 GB, free: 0.7656 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/0.6279, allocations: 35.98 kB / 0.5319 GB, free: 0.7305 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00336/0.6313, allocations: 1.701 MB / 0.5335 GB, free: 15.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.6313, allocations: 0 / 0.5335 GB, free: 15.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004485/0.6358, allocations: 0.7853 MB / 0.5343 GB, free: 14.23 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004503/0.6363, allocations: 167.1 kB / 0.5345 GB, free: 14.06 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00818/0.6445, allocations: 4.458 MB / 0.5388 GB, free: 9.566 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.6445, allocations: 0 / 0.5388 GB, free: 9.566 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003365/0.6479, allocations: 1.725 MB / 0.5405 GB, free: 7.785 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002291/0.6502, allocations: 279.9 kB / 0.5408 GB, free: 7.512 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.6634, allocations: 6.829 MB / 0.5474 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2091/0.8725, allocations: 2.288 MB / 0.5497 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009529/0.8735, allocations: 208.6 kB / 0.5499 GB, free: 151.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.483e-06/0.8736, allocations: 0.5625 kB / 0.5499 GB, free: 151.6 MB / 478.1 MB Notification: Performance of Templates: time 0.08672/0.9603, allocations: 76.19 MB / 0.6243 GB, free: 96.02 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches