Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001962/0.001962, allocations: 112 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002278/0.002278, allocations: 182 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.447/1.447, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 47.94 kB / 370.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2368/0.2384, allocations: 52.2 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01194/0.2503, allocations: 10.36 MB / 433 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007561/0.2579, allocations: 3.925 MB / 436.9 MB, free: 248 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001353/0.2593, allocations: 63.69 kB / 437 MB, free: 184 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004228/0.2635, allocations: 2.114 MB / 439.1 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004208/0.2677, allocations: 1.681 MB / 440.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00163/0.2693, allocations: 0.694 MB / 441.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004829/0.2741, allocations: 3.356 MB / 444.8 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003262/0.2774, allocations: 2.231 MB / 447.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002254/0.2797, allocations: 1.277 MB / 448.3 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003011/0.2827, allocations: 1.908 MB / 450.3 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008774/0.2835, allocations: 264 kB / 450.5 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002461/0.286, allocations: 1.158 MB / 451.7 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002081/0.2881, allocations: 1.616 MB / 453.3 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00311/0.2912, allocations: 1.868 MB / 455.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007994/0.2992, allocations: 5.968 MB / 461.1 MB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2992, allocations: 4 kB / 461.1 MB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2992, allocations: 3.938 kB / 461.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002081/0.2994, allocations: 4 kB / 461.1 MB, free: 7.914 MB / 366.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.009567/0.309, allocations: 4.16 MB / 465.3 MB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.309, allocations: 16.03 kB / 465.3 MB, free: 3.684 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001534/0.3106, allocations: 0.6335 MB / 465.9 MB, free: 3.039 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006761/0.3173, allocations: 1.89 MB / 467.8 MB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005233/0.3226, allocations: 2.157 MB / 470 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.3228, allocations: 205.2 kB / 470.2 MB, free: 14.74 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008678/0.3236, allocations: 267.8 kB / 470.5 MB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01845/0.3421, allocations: 9.985 MB / 480.4 MB, free: 3.82 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001115/0.3422, allocations: 43.64 kB / 480.5 MB, free: 3.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004243/0.3426, allocations: 131.9 kB / 480.6 MB, free: 3.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003081/0.3457, allocations: 1.852 MB / 482.5 MB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01754/0.3632, allocations: 8.54 MB / 491 MB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04514/0.4084, allocations: 36.66 MB / 0.5153 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00897/0.4174, allocations: 3.082 MB / 0.5183 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002503/0.4199, allocations: 1.693 MB / 0.52 GB, free: 14.72 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01151/0.4314, allocations: 6.621 MB / 0.5264 GB, free: 8.055 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.274e-05/0.4314, allocations: 55.5 kB / 0.5265 GB, free: 7.992 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.328e-06/0.4314, allocations: 0 / 0.5265 GB, free: 7.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.2434/0.6749, allocations: 17.37 MB / 0.5434 GB, free: 106.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.6749, allocations: 149.9 kB / 0.5436 GB, free: 106.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003433/0.6783, allocations: 3.494 MB / 0.547 GB, free: 105 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.6785, allocations: 45.52 kB / 0.547 GB, free: 105 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.6795, allocations: 2.856 MB / 0.5498 GB, free: 103 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000379/0.6799, allocations: 0.67 MB / 0.5505 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009612/0.6808, allocations: 1.128 MB / 0.5516 GB, free: 102 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.78e-05/0.6809, allocations: 304.8 kB / 0.5519 GB, free: 101.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/0.683, allocations: 1.939 MB / 0.5538 GB, free: 101.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003044/0.686, allocations: 5.37 MB / 0.559 GB, free: 94.79 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005457/0.6915, allocations: 7.916 MB / 0.5667 GB, free: 85.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.011e-05/0.6915, allocations: 36 kB / 0.5668 GB, free: 85.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01117/0.7027, allocations: 8.148 MB / 0.5747 GB, free: 77 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.63e-05/0.7027, allocations: 67.92 kB / 0.5748 GB, free: 76.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.931e-05/0.7028, allocations: 120 kB / 0.5749 GB, free: 76.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003294/0.7061, allocations: 1.293 MB / 0.5762 GB, free: 75.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003112/0.7092, allocations: 1.259 MB / 0.5774 GB, free: 74.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006773/0.716, allocations: 6.433 MB / 0.5837 GB, free: 67.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003775/0.7198, allocations: 307.7 kB / 0.584 GB, free: 67.41 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005322/0.7203, allocations: 344 kB / 0.5843 GB, free: 67.08 MB / 446.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.002079/0.7224, allocations: 1.797 MB / 0.5861 GB, free: 65.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004582/0.7228, allocations: 325.8 kB / 0.5864 GB, free: 64.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005686/0.7285, allocations: 3.35 MB / 0.5896 GB, free: 61.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.197e-05/0.7285, allocations: 19.83 kB / 0.5897 GB, free: 61.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.7286, allocations: 12 kB / 0.5897 GB, free: 61.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.37e-05/0.7286, allocations: 11.53 kB / 0.5897 GB, free: 61.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01252/0.7411, allocations: 7.528 MB / 0.597 GB, free: 53.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.7411, allocations: 0 / 0.597 GB, free: 53.99 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001011/0.7421, allocations: 243.7 kB / 0.5973 GB, free: 53.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003085/0.7452, allocations: 1.116 MB / 0.5984 GB, free: 52.63 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/0.7453, allocations: 31.98 kB / 0.5984 GB, free: 52.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006331/0.7517, allocations: 6.059 MB / 0.6043 GB, free: 46.43 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.7517, allocations: 7.969 kB / 0.6043 GB, free: 46.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007503/0.7592, allocations: 5.705 MB / 0.6099 GB, free: 40.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007808/0.7599, allocations: 297.7 kB / 0.6102 GB, free: 40.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006051/0.7605, allocations: 20 kB / 0.6102 GB, free: 40.38 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.762, allocations: 99.48 kB / 0.6103 GB, free: 40.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.7622, allocations: 96.75 kB / 0.6104 GB, free: 40.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.997e-05/0.7623, allocations: 44 kB / 0.6104 GB, free: 40.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002545/0.7649, allocations: 2.158 MB / 0.6125 GB, free: 38 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.7649, allocations: 0 / 0.6125 GB, free: 38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00374/0.7686, allocations: 0.9061 MB / 0.6134 GB, free: 37.09 MB / 446.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.007584/0.7762, allocations: 6.355 MB / 0.6196 GB, free: 30.71 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00568/0.7819, allocations: 4.583 MB / 0.6241 GB, free: 26.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.7819, allocations: 8 kB / 0.6241 GB, free: 26.14 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001641/0.7835, allocations: 1.424 MB / 0.6255 GB, free: 24.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001771/0.7853, allocations: 370.7 kB / 0.6258 GB, free: 24.35 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05049/0.8358, allocations: 41.28 MB / 0.6662 GB, free: 9.777 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003118/0.8389, allocations: 2.854 MB / 0.6689 GB, free: 6.887 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003607/0.8425, allocations: 1.703 MB / 0.6706 GB, free: 5.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001996/0.8445, allocations: 1.589 MB / 0.6722 GB, free: 3.59 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8445, allocations: 0 / 0.6722 GB, free: 3.59 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9636/1.808, allocations: 65.31 MB / 0.7359 GB, free: 185.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.37/22.18, allocations: 9.359 kB / 0.7359 GB, free: 185.7 MB / 0.5294 GB " [Timeout remaining time 638] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 25.287084496812895]