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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00092/0.00092, allocations: 83.64 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.004438/0.004438, allocations: 163.2 kB / 24.69 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.001/1.001, allocations: 158.6 MB / 186.5 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.434e-06/2.434e-06, allocations: 0 / 298.4 MB, free: 3.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.126e-05/3.369e-05, allocations: 2.281 kB / 298.4 MB, free: 3.5 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2041/0.2042, allocations: 9.085 MB / 307.5 MB, free: 10.94 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00889/0.2131, allocations: 3.678 MB / 311.2 MB, free: 8.684 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.2145, allocations: 70.31 kB / 311.3 MB, free: 8.66 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003413/0.2179, allocations: 2.132 MB / 313.4 MB, free: 7.75 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004577/0.2225, allocations: 1.739 MB / 315.1 MB, free: 6.949 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.2242, allocations: 0.7517 MB / 315.9 MB, free: 6.629 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004613/0.2288, allocations: 3.729 MB / 319.6 MB, free: 5.164 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003214/0.232, allocations: 2.479 MB / 322.1 MB, free: 3.465 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003372/0.2354, allocations: 1.941 MB / 324.1 MB, free: 2.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.2382, allocations: 1.894 MB / 325.9 MB, free: 1.219 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001012/0.2392, allocations: 266.1 kB / 326.2 MB, free: 1.219 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.2415, allocations: 1.063 MB / 327.3 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00113/0.2426, allocations: 1.694 MB / 329 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00161/0.2442, allocations: 1.078 MB / 330 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005702/0.2499, allocations: 6.016 MB / 336.1 MB, free: 8.992 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.2499, allocations: 5.875 kB / 336.1 MB, free: 8.988 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.2499, allocations: 0 / 336.1 MB, free: 8.988 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002429/0.2502, allocations: 0 / 336.1 MB, free: 8.988 MB / 298.7 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.007058/0.2572, allocations: 4.195 MB / 340.3 MB, free: 4.734 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.2573, allocations: 15.98 kB / 340.3 MB, free: 4.719 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005831/0.2579, allocations: 0.6374 MB / 340.9 MB, free: 4.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00399/0.2619, allocations: 1.991 MB / 342.9 MB, free: 2.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003242/0.2651, allocations: 2.052 MB / 345 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.2652, allocations: 205.1 kB / 345.2 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003302/0.2656, allocations: 271.8 kB / 345.4 MB, free: 15.52 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01304/0.2786, allocations: 10.03 MB / 355.4 MB, free: 4.797 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001101/0.2787, allocations: 35.64 kB / 355.5 MB, free: 4.762 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003925/0.2791, allocations: 135.9 kB / 355.6 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002382/0.2815, allocations: 1.852 MB / 357.5 MB, free: 2.773 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01419/0.2957, allocations: 8.521 MB / 366 MB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03558/0.3313, allocations: 35.61 MB / 401.6 MB, free: 5.609 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006049/0.3373, allocations: 3.204 MB / 404.8 MB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.339, allocations: 1.687 MB / 406.5 MB, free: 0.6758 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007604/0.3466, allocations: 6.384 MB / 412.9 MB, free: 10.24 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.3467, allocations: 51.48 kB / 412.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=150): time 3.887e-06/0.3467, allocations: 4 kB / 412.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=166): time 0.03169/0.3783, allocations: 18.1 MB / 431 MB, free: 8.027 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.3784, allocations: 149.5 kB / 431.2 MB, free: 7.848 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004569/0.383, allocations: 3.899 MB / 435.1 MB, free: 3.945 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.3831, allocations: 49.7 kB / 435.1 MB, free: 3.891 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/0.3847, allocations: 2.819 MB / 437.9 MB, free: 1.051 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004929/0.3852, allocations: 0.6667 MB / 438.6 MB, free: 388 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001217/0.3864, allocations: 1.108 MB / 439.7 MB, free: 15.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.186e-05/0.3865, allocations: 301.1 kB / 440 MB, free: 14.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002083/0.3886, allocations: 1.947 MB / 442 MB, free: 13.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003956/0.3925, allocations: 5.373 MB / 447.3 MB, free: 5.918 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006978/0.3995, allocations: 7.922 MB / 455.3 MB, free: 12.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.23e-05/0.3996, allocations: 40 kB / 455.3 MB, free: 12.26 MB / 426.7 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01019/0.4098, allocations: 8.174 MB / 463.5 MB, free: 4.078 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.468e-05/0.4098, allocations: 63.98 kB / 463.5 MB, free: 4.016 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.705e-05/0.4099, allocations: 120.5 kB / 463.6 MB, free: 3.898 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002326/0.4123, allocations: 1.289 MB / 464.9 MB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002196/0.4145, allocations: 1.268 MB / 466.2 MB, free: 1.336 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1919/0.6064, allocations: 6.384 MB / 472.6 MB, free: 131.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003411/0.6098, allocations: 359.5 kB / 472.9 MB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005119/0.6103, allocations: 342.8 kB / 473.3 MB, free: 131.3 MB / 426.7 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.00277/0.6131, allocations: 1.813 MB / 475.1 MB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005323/0.6136, allocations: 324.6 kB / 475.4 MB, free: 130.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005026/0.6187, allocations: 3.36 MB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-05/0.6187, allocations: 18.28 kB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.6187, allocations: 4.875 kB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.6187, allocations: 7.859 kB / 478.8 MB, free: 129.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01198/0.6307, allocations: 7.303 MB / 486.1 MB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.6307, allocations: 3.719 kB / 486.1 MB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007036/0.6314, allocations: 241.8 kB / 486.3 MB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.6335, allocations: 1.121 MB / 487.5 MB, free: 127 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.6336, allocations: 31.61 kB / 487.5 MB, free: 127 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00558/0.6392, allocations: 6.029 MB / 493.5 MB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.6392, allocations: 3.75 kB / 493.5 MB, free: 124.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005658/0.6448, allocations: 5.717 MB / 499.2 MB, free: 122.1 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.646, allocations: 0.541 MB / 499.8 MB, free: 122 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002094/0.6462, allocations: 23.78 kB / 499.8 MB, free: 122 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007763/0.647, allocations: 131.1 kB / 499.9 MB, free: 122 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.6471, allocations: 100.2 kB / 0.4883 GB, free: 122 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.231e-05/0.6472, allocations: 43.72 kB / 0.4884 GB, free: 122 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00251/0.6497, allocations: 2.319 MB / 0.4906 GB, free: 120.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.6497, allocations: 0 / 0.4906 GB, free: 120.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003798/0.6535, allocations: 1.007 MB / 0.4916 GB, free: 120.7 MB / 426.7 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.00641/0.6599, allocations: 6.375 MB / 0.4978 GB, free: 115.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006782/0.6667, allocations: 4.597 MB / 0.5023 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.246e-06/0.6667, allocations: 0 / 0.5023 GB, free: 110.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001666/0.6684, allocations: 1.433 MB / 0.5037 GB, free: 109.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.6707, allocations: 365.5 kB / 0.5041 GB, free: 108.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05179/0.7225, allocations: 41.78 MB / 0.5449 GB, free: 61.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001919/0.7244, allocations: 2.311 MB / 0.5471 GB, free: 59.4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002672/0.7271, allocations: 1.715 MB / 0.5488 GB, free: 57.68 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001519/0.7286, allocations: 1.594 MB / 0.5503 GB, free: 56.09 MB / 426.7 MB Notification: Performance of SimCode: time 3.387e-06/0.7286, allocations: 0 / 0.5503 GB, free: 56.09 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09467/0.8233, allocations: 62.87 MB / 0.6117 GB, free: 9.035 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.794/10.62, allocations: 7.844 kB / 0.6118 GB, free: 9.027 MB / 442.7 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.855757703073323]