Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",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.001776/0.001776, allocations: 114.5 kB / 17.73 MB, free: 5.301 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.001879/0.00188, allocations: 187 kB / 18.66 MB, free: 4.375 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.464/1.464, allocations: 205.1 MB / 224.5 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.001742/0.001742, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09365/0.0954, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.1839/0.2793, allocations: 10.32 MB / 385 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007524/0.2869, allocations: 3.865 MB / 388.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001776/0.2887, allocations: 58.09 kB / 388.9 MB, free: 5.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004314/0.2931, allocations: 2.081 MB / 391 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004773/0.2979, allocations: 1.638 MB / 392.6 MB, free: 3.805 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001667/0.2995, allocations: 0.6848 MB / 393.3 MB, free: 3.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005297/0.3048, allocations: 3.39 MB / 396.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003178/0.308, allocations: 2.702 MB / 399.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001859/0.3099, allocations: 1.269 MB / 400.7 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002451/0.3124, allocations: 1.769 MB / 402.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006703/0.3131, allocations: 262.2 kB / 402.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002357/0.3154, allocations: 1.107 MB / 403.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.3171, allocations: 1.582 MB / 405.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002404/0.3195, allocations: 1.869 MB / 407.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007754/0.3273, allocations: 5.976 MB / 413.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3273, allocations: 1.375 kB / 413.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3273, allocations: 4 kB / 413.2 MB, free: 8.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002107/0.3275, allocations: 0 / 413.2 MB, free: 8.691 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.009905/0.3374, allocations: 4.269 MB / 417.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.3375, allocations: 12.03 kB / 417.5 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001091/0.3386, allocations: 0.6335 MB / 418.1 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006955/0.3456, allocations: 1.894 MB / 420 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004836/0.3504, allocations: 2.366 MB / 422.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001872/0.3506, allocations: 209.2 kB / 422.6 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006272/0.3513, allocations: 267.9 kB / 422.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02077/0.3721, allocations: 9.977 MB / 432.8 MB, free: 4.742 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/0.3722, allocations: 39.69 kB / 432.9 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004375/0.3727, allocations: 131.9 kB / 433 MB, free: 4.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003387/0.3761, allocations: 1.856 MB / 434.9 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01932/0.3954, allocations: 8.54 MB / 443.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04883/0.4443, allocations: 36.77 MB / 480.2 MB, free: 4.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01022/0.4545, allocations: 3.885 MB / 484.1 MB, free: 284 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002868/0.4574, allocations: 1.815 MB / 485.9 MB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01209/0.4695, allocations: 7.537 MB / 493.4 MB, free: 6.641 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.647e-05/0.4696, allocations: 47.5 kB / 493.5 MB, free: 6.586 MB / 414.1 MB Notification: Performance of pre-optimization done (n=150): time 4.979e-06/0.4697, allocations: 0 / 493.5 MB, free: 6.586 MB / 414.1 MB Notification: Performance of matching and sorting (n=166): time 0.05669/0.5264, allocations: 17.69 MB / 0.4992 GB, free: 4.793 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001058/0.5265, allocations: 149.5 kB / 0.4993 GB, free: 4.613 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005755/0.5323, allocations: 3.507 MB / 0.5027 GB, free: 1.105 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00037/0.5327, allocations: 49.7 kB / 0.5028 GB, free: 1.051 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002748/0.5354, allocations: 2.85 MB / 0.5056 GB, free: 14.17 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/0.5367, allocations: 0.6745 MB / 0.5062 GB, free: 13.49 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001879/0.5386, allocations: 1.123 MB / 0.5073 GB, free: 12.36 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.5387, allocations: 304.9 kB / 0.5076 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003499/0.5422, allocations: 1.943 MB / 0.5095 GB, free: 10.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006587/0.5488, allocations: 5.358 MB / 0.5147 GB, free: 3.039 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.5595, allocations: 7.92 MB / 0.5225 GB, free: 9.414 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.816e-05/0.5597, allocations: 40.22 kB / 0.5225 GB, free: 9.375 MB / 462.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01785/0.5775, allocations: 8.168 MB / 0.5305 GB, free: 1.195 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-05/0.5777, allocations: 56.09 kB / 0.5305 GB, free: 1.141 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001591/0.5778, allocations: 127.9 kB / 0.5307 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004355/0.5822, allocations: 1.296 MB / 0.5319 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004376/0.5866, allocations: 1.255 MB / 0.5332 GB, free: 14.46 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01059/0.5972, allocations: 6.547 MB / 0.5396 GB, free: 7.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004504/0.6018, allocations: 299.6 kB / 0.5398 GB, free: 7.477 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008968/0.6027, allocations: 336 kB / 0.5402 GB, free: 7.148 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (681): * Single equations (assignments): 677 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003465/0.6062, allocations: 1.814 MB / 0.5419 GB, free: 5.32 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000662/0.6068, allocations: 325.9 kB / 0.5422 GB, free: 5.004 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007777/0.6146, allocations: 3.369 MB / 0.5455 GB, free: 1.617 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.834e-05/0.6147, allocations: 19.98 kB / 0.5456 GB, free: 1.598 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.195e-05/0.6147, allocations: 4 kB / 0.5456 GB, free: 1.594 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.067e-05/0.6147, allocations: 11.97 kB / 0.5456 GB, free: 1.582 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1971/0.8119, allocations: 7.573 MB / 0.553 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.419e-05/0.8119, allocations: 0.75 kB / 0.553 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.8131, allocations: 239 kB / 0.5532 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003811/0.8169, allocations: 1.123 MB / 0.5543 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001628/0.8171, allocations: 29.36 kB / 0.5543 GB, free: 148.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008506/0.8256, allocations: 6.169 MB / 0.5603 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.8256, allocations: 3.906 kB / 0.5603 GB, free: 145.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009517/0.8351, allocations: 5.73 MB / 0.5659 GB, free: 143.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.8366, allocations: 0.5833 MB / 0.5665 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004678/0.837, allocations: 26.91 kB / 0.5665 GB, free: 143.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001371/0.8384, allocations: 93.41 kB / 0.5666 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003026/0.8387, allocations: 89.94 kB / 0.5667 GB, free: 143.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.8389, allocations: 52.31 kB / 0.5668 GB, free: 143.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003253/0.8421, allocations: 2.164 MB / 0.5689 GB, free: 142.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8421, allocations: 0 / 0.5689 GB, free: 142.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004129/0.8463, allocations: 0.9087 MB / 0.5698 GB, free: 142.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.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 (129): * Single equations (assignments): 125 * 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 {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00847/0.8548, allocations: 6.381 MB / 0.576 GB, free: 140.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006599/0.8614, allocations: 4.785 MB / 0.5807 GB, free: 138.6 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.8614, allocations: 0 / 0.5807 GB, free: 138.6 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001917/0.8634, allocations: 1.533 MB / 0.5822 GB, free: 138 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/0.8655, allocations: 365 kB / 0.5825 GB, free: 137.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04818/0.9137, allocations: 41.31 MB / 0.6228 GB, free: 92.16 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002329/0.9161, allocations: 2.868 MB / 0.6256 GB, free: 89.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003082/0.9192, allocations: 1.701 MB / 0.6273 GB, free: 87.58 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001602/0.9208, allocations: 1.589 MB / 0.6289 GB, free: 85.99 MB / 478.1 MB Notification: Performance of SimCode: time 9.71e-07/0.9208, allocations: 4 kB / 0.6289 GB, free: 85.98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09366/1.014, allocations: 60.35 MB / 0.6878 GB, free: 25.56 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.3/20.31, allocations: 7.797 kB / 0.6878 GB, free: 25.55 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches