Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001687/0.001687, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001926/0.001926, allocations: 183.1 kB / 18.67 MB, free: 4.41 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.369/1.369, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001615/0.001615, allocations: 55.92 kB / 328 MB, free: 3.805 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08876/0.09038, allocations: 46.62 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.1734/0.2638, allocations: 12.04 MB / 386.7 MB, free: 6.008 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008162/0.272, allocations: 4.195 MB / 390.9 MB, free: 3.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001998/0.2741, allocations: 68.62 kB / 391 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004865/0.279, allocations: 2.757 MB / 393.7 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005726/0.2847, allocations: 1.971 MB / 395.7 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002216/0.287, allocations: 0.8047 MB / 396.5 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00721/0.2942, allocations: 4.62 MB / 401.1 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005765/0.3, allocations: 3.564 MB / 404.7 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004283/0.3043, allocations: 1.697 MB / 406.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004155/0.3085, allocations: 2.347 MB / 408.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.3097, allocations: 351.7 kB / 409.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003079/0.3128, allocations: 1.265 MB / 410.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002477/0.3153, allocations: 2.113 MB / 412.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003822/0.3191, allocations: 2.446 MB / 414.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01014/0.3293, allocations: 7.589 MB / 422.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.3293, allocations: 0 / 422.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3293, allocations: 0 / 422.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002292/0.3296, allocations: 0 / 422.5 MB, free: 15.8 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.01229/0.3419, allocations: 5.468 MB / 427.9 MB, free: 10.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.3419, allocations: 8.031 kB / 428 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001374/0.3433, allocations: 0.8099 MB / 428.8 MB, free: 9.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008265/0.3516, allocations: 2.166 MB / 430.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006325/0.3579, allocations: 3.444 MB / 434.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002354/0.3582, allocations: 270.9 kB / 434.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001056/0.3593, allocations: 435.6 kB / 435.1 MB, free: 3.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0239/0.3832, allocations: 12.22 MB / 447.3 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001399/0.3834, allocations: 47.58 kB / 447.3 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006102/0.384, allocations: 179.8 kB / 447.5 MB, free: 5.809 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003425/0.3874, allocations: 2.162 MB / 449.7 MB, free: 3.645 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02268/0.4101, allocations: 10.2 MB / 459.9 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05939/0.4696, allocations: 44.21 MB / 0.4923 GB, free: 11.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/0.4814, allocations: 4.609 MB / 0.4968 GB, free: 7.172 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002712/0.4841, allocations: 1.724 MB / 0.4984 GB, free: 5.438 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01302/0.4972, allocations: 8.206 MB / 0.5065 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.897e-05/0.4973, allocations: 55.81 kB / 0.5065 GB, free: 12.78 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 6.692e-06/0.4973, allocations: 0 / 0.5065 GB, free: 12.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.04302/0.5403, allocations: 16.29 MB / 0.5224 GB, free: 12.34 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001603/0.542, allocations: 1.703 MB / 0.5241 GB, free: 10.46 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006642/0.5486, allocations: 4.249 MB / 0.5282 GB, free: 6.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003992/0.5491, allocations: 57.69 kB / 0.5283 GB, free: 6.117 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002931/0.552, allocations: 3.548 MB / 0.5317 GB, free: 2.535 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001188/0.5532, allocations: 0.8412 MB / 0.5326 GB, free: 1.688 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002083/0.5553, allocations: 1.358 MB / 0.5339 GB, free: 328 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.5555, allocations: 301.1 kB / 0.5342 GB, free: 24 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00379/0.5592, allocations: 2.227 MB / 0.5364 GB, free: 13.79 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007357/0.5666, allocations: 6.355 MB / 0.5426 GB, free: 5.387 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1885/0.7551, allocations: 9.259 MB / 0.5516 GB, free: 138.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001091/0.7553, allocations: 41.59 kB / 0.5516 GB, free: 138.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01659/0.7719, allocations: 9.09 MB / 0.5605 GB, free: 136.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.768e-05/0.772, allocations: 72.44 kB / 0.5606 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005229/0.7772, allocations: 2.847 MB / 0.5634 GB, free: 135.8 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003321/0.7806, allocations: 1.065 MB / 0.5644 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004744/0.7853, allocations: 1.576 MB / 0.5659 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004265/0.7896, allocations: 4.672 MB / 0.5705 GB, free: 132.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004783/0.7944, allocations: 420.5 kB / 0.5709 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008347/0.7952, allocations: 417.1 kB / 0.5713 GB, free: 132 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],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],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 (848): * Single equations (assignments): 839 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003182/0.7984, allocations: 2.209 MB / 0.5735 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006052/0.7991, allocations: 409.7 kB / 0.5739 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00538/0.8044, allocations: 3.288 MB / 0.5771 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004178/0.8086, allocations: 2.74 MB / 0.5797 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.265e-05/0.8087, allocations: 3.875 kB / 0.5797 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.882e-05/0.8087, allocations: 11.73 kB / 0.5798 GB, free: 129.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01418/0.8229, allocations: 10.36 MB / 0.5899 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.181e-05/0.8229, allocations: 11.97 kB / 0.5899 GB, free: 124.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001322/0.8243, allocations: 361.5 kB / 0.5902 GB, free: 124.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002579/0.8269, allocations: 0.9905 MB / 0.5912 GB, free: 123.6 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001874/0.8271, allocations: 63.97 kB / 0.5913 GB, free: 123.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003781/0.8308, allocations: 4.896 MB / 0.596 GB, free: 118.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006555/0.8315, allocations: 1.561 MB / 0.5976 GB, free: 116.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006719/0.8382, allocations: 5.944 MB / 0.6034 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/0.8394, allocations: 0.6776 MB / 0.604 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004225/0.8399, allocations: 55.98 kB / 0.6041 GB, free: 110 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001482/0.8414, allocations: 147.7 kB / 0.6042 GB, free: 109.8 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/0.8416, allocations: 176.4 kB / 0.6044 GB, free: 109.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.8418, allocations: 71.98 kB / 0.6045 GB, free: 109.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002966/0.8447, allocations: 2.622 MB / 0.607 GB, free: 107 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8448, allocations: 0 / 0.607 GB, free: 107 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004555/0.8493, allocations: 1.14 MB / 0.6081 GB, free: 105.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006929/0.8563, allocations: 6.632 MB / 0.6146 GB, free: 99 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007981/0.8643, allocations: 5.933 MB / 0.6204 GB, free: 93.02 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/0.8643, allocations: 5.094 kB / 0.6204 GB, free: 93.02 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003197/0.8675, allocations: 2.2 MB / 0.6226 GB, free: 90.75 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.8704, allocations: 0.4945 MB / 0.623 GB, free: 90.27 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05471/0.9251, allocations: 50.81 MB / 0.6727 GB, free: 32.64 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002943/0.9281, allocations: 3.463 MB / 0.676 GB, free: 29.15 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003626/0.9317, allocations: 2.03 MB / 0.678 GB, free: 27.11 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/0.9337, allocations: 2.103 MB / 0.6801 GB, free: 25.01 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9337, allocations: 0 / 0.6801 GB, free: 25.01 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3156/1.249, allocations: 73.36 MB / 0.7517 GB, free: 160.7 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 51.78/53.03, allocations: 10 kB / 0.7517 GB, free: 160.7 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches