Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_4_0_0_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.001128/0.001128, allocations: 106.6 kB / 16.51 MB, free: 6.707 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.001036/0.001036, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00101/0.00101, allocations: 47.8 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/0.08699, allocations: 49.44 MB / 349.5 MB, free: 4.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2182/0.3052, allocations: 46.96 MB / 396.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02503/0.3303, allocations: 9.957 MB / 406.4 MB, free: 9.043 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01208/0.3424, allocations: 201.2 kB / 406.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005566/0.3481, allocations: 2.738 MB / 409.4 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005193/0.3533, allocations: 1.836 MB / 411.2 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.355, allocations: 0.7467 MB / 411.9 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006871/0.3619, allocations: 6.488 MB / 418.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003648/0.3656, allocations: 3.535 MB / 422 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002404/0.368, allocations: 1.514 MB / 423.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003218/0.3712, allocations: 2.5 MB / 426 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006281/0.3719, allocations: 256 kB / 426.2 MB, free: 8.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002412/0.3743, allocations: 1.252 MB / 427.5 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001809/0.3761, allocations: 2.049 MB / 429.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00222/0.3783, allocations: 2.365 MB / 431.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006859/0.3852, allocations: 7.199 MB / 439.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.3852, allocations: 0 / 439.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3853, allocations: 0 / 439.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001757/0.3854, allocations: 0 / 439.1 MB, free: 11.16 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.009482/0.3949, allocations: 5.297 MB / 444.4 MB, free: 5.789 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.395, allocations: 16.02 kB / 444.4 MB, free: 5.773 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009789/0.396, allocations: 0.8021 MB / 445.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007809/0.4038, allocations: 2.128 MB / 447.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005607/0.4094, allocations: 3.102 MB / 450.4 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000229/0.4097, allocations: 274.8 kB / 450.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/0.4109, allocations: 423.7 kB / 451.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02153/0.4324, allocations: 12.23 MB / 463.3 MB, free: 1.938 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000104/0.4326, allocations: 43.62 kB / 463.4 MB, free: 1.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004248/0.433, allocations: 171.8 kB / 463.6 MB, free: 1.727 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002939/0.436, allocations: 2.162 MB / 465.7 MB, free: 15.55 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02054/0.4565, allocations: 10.21 MB / 475.9 MB, free: 5.324 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05756/0.5141, allocations: 44.28 MB / 0.508 GB, free: 7.809 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/0.526, allocations: 4.602 MB / 0.5125 GB, free: 3.012 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002727/0.5287, allocations: 1.724 MB / 0.5142 GB, free: 1.281 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01249/0.5413, allocations: 8.2 MB / 0.5222 GB, free: 8.695 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.107e-05/0.5413, allocations: 55.88 kB / 0.5222 GB, free: 8.633 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.631e-06/0.5414, allocations: 0 / 0.5222 GB, free: 8.633 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.228/0.7694, allocations: 15.92 MB / 0.5378 GB, free: 112.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009638/0.7704, allocations: 1.603 MB / 0.5394 GB, free: 111.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006286/0.7767, allocations: 4.209 MB / 0.5435 GB, free: 110.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003565/0.7771, allocations: 55.08 kB / 0.5435 GB, free: 110.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001671/0.7788, allocations: 3.397 MB / 0.5468 GB, free: 108.6 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007622/0.7795, allocations: 0.8114 MB / 0.5476 GB, free: 108.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001507/0.781, allocations: 1.348 MB / 0.549 GB, free: 108 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.873e-05/0.7811, allocations: 301.1 kB / 0.5492 GB, free: 107.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002921/0.784, allocations: 2.235 MB / 0.5514 GB, free: 107.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00413/0.7882, allocations: 6.35 MB / 0.5576 GB, free: 101.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007746/0.7959, allocations: 9.255 MB / 0.5667 GB, free: 93.92 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/0.7961, allocations: 46.34 kB / 0.5667 GB, free: 93.92 MB / 446.1 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.014/0.8101, allocations: 9.089 MB / 0.5756 GB, free: 89.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.8102, allocations: 67.89 kB / 0.5756 GB, free: 89.18 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004558/0.8148, allocations: 2.833 MB / 0.5784 GB, free: 86.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003107/0.8179, allocations: 1.079 MB / 0.5795 GB, free: 85.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004713/0.8226, allocations: 1.567 MB / 0.581 GB, free: 84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003768/0.8264, allocations: 4.396 MB / 0.5853 GB, free: 79.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005333/0.8318, allocations: 427.3 kB / 0.5857 GB, free: 79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001242/0.833, allocations: 421.9 kB / 0.5861 GB, free: 78.59 MB / 446.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.004401/0.8375, allocations: 2.208 MB / 0.5883 GB, free: 76.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009564/0.8384, allocations: 379.1 kB / 0.5886 GB, free: 76.14 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005756/0.8442, allocations: 3.284 MB / 0.5918 GB, free: 72.84 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004251/0.8485, allocations: 2.744 MB / 0.5945 GB, free: 70.09 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/0.8485, allocations: 4 kB / 0.5945 GB, free: 70.09 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.73e-05/0.8485, allocations: 11.72 kB / 0.5945 GB, free: 70.08 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01633/0.8649, allocations: 10.35 MB / 0.6046 GB, free: 59.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.764e-05/0.8649, allocations: 12 kB / 0.6046 GB, free: 59.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001302/0.8662, allocations: 367.6 kB / 0.605 GB, free: 59.26 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002581/0.8688, allocations: 0.9868 MB / 0.606 GB, free: 58.26 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001807/0.869, allocations: 55.98 kB / 0.606 GB, free: 58.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003674/0.8727, allocations: 4.595 MB / 0.6105 GB, free: 53.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006415/0.8733, allocations: 1.47 MB / 0.6119 GB, free: 51.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007245/0.8806, allocations: 5.917 MB / 0.6177 GB, free: 45.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000976/0.8816, allocations: 440 kB / 0.6181 GB, free: 45.23 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007822/0.8824, allocations: 63.97 kB / 0.6182 GB, free: 45.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/0.8843, allocations: 146.3 kB / 0.6183 GB, free: 45.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003101/0.8846, allocations: 173.9 kB / 0.6185 GB, free: 44.87 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001368/0.8848, allocations: 71.98 kB / 0.6186 GB, free: 44.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003846/0.8886, allocations: 2.606 MB / 0.6211 GB, free: 42.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.8887, allocations: 0 / 0.6211 GB, free: 42.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005812/0.8945, allocations: 1.137 MB / 0.6222 GB, free: 41.05 MB / 446.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.008106/0.9026, allocations: 6.605 MB / 0.6287 GB, free: 34.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008206/0.9108, allocations: 5.869 MB / 0.6344 GB, free: 28.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.4e-05/0.9108, allocations: 4 kB / 0.6344 GB, free: 28.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003354/0.9142, allocations: 2.197 MB / 0.6365 GB, free: 26.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003855/0.9181, allocations: 476.6 kB / 0.637 GB, free: 25.89 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08491/1.003, allocations: 59.18 MB / 0.6948 GB, free: 5.812 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005807/1.009, allocations: 3.455 MB / 0.6982 GB, free: 2.324 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006096/1.015, allocations: 2.026 MB / 0.7001 GB, free: 300 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003685/1.019, allocations: 2.096 MB / 0.7022 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of SimCode: time 1.323e-06/1.019, allocations: 0 / 0.7022 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6859/1.705, allocations: 75.7 MB / 0.7761 GB, free: 160.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001351/1.705, allocations: 264.7 kB / 0.7764 GB, free: 160.1 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.673/5.378, allocations: 0 / 0.7764 GB, free: 160.1 MB / 0.4981 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches