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.001503/0.001503, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001314/0.001314, allocations: 192.8 kB / 24.5 MB, free: 4.02 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.346/1.346, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 179] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 51.92 kB / 371.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2082, allocations: 52.18 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01145/0.2197, allocations: 10.37 MB / 433.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006879/0.2266, allocations: 3.921 MB / 437.7 MB, free: 252 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008644/0.2274, allocations: 63.69 kB / 437.8 MB, free: 188 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003596/0.231, allocations: 2.11 MB / 439.9 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00332/0.2343, allocations: 1.677 MB / 441.6 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001309/0.2356, allocations: 0.7017 MB / 442.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003916/0.2396, allocations: 3.364 MB / 445.6 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002693/0.2422, allocations: 2.224 MB / 447.9 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001823/0.2441, allocations: 1.281 MB / 449.1 MB, free: 4.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002492/0.2466, allocations: 1.908 MB / 451 MB, free: 2.836 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004762/0.247, allocations: 264 kB / 451.3 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001954/0.249, allocations: 1.158 MB / 452.5 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001576/0.2506, allocations: 1.616 MB / 454.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.2526, allocations: 1.868 MB / 455.9 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006804/0.2594, allocations: 5.972 MB / 461.9 MB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2594, allocations: 0 / 461.9 MB, free: 7.922 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2594, allocations: 4 kB / 461.9 MB, free: 7.918 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001017/0.2595, allocations: 4 kB / 461.9 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.007917/0.2674, allocations: 4.16 MB / 466.1 MB, free: 3.699 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.2675, allocations: 12.03 kB / 466.1 MB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.312e-05/0.2676, allocations: 93.52 kB / 466.2 MB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007924/0.2683, allocations: 0.6374 MB / 466.8 MB, free: 2.945 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006325/0.2747, allocations: 1.89 MB / 468.7 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003929/0.2786, allocations: 2.157 MB / 470.9 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.2788, allocations: 205.2 kB / 471.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005594/0.2793, allocations: 271.8 kB / 471.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/0.2969, allocations: 9.977 MB / 481.3 MB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.988e-05/0.297, allocations: 35.7 kB / 481.3 MB, free: 3.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003608/0.2974, allocations: 139.8 kB / 481.5 MB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00311/0.3005, allocations: 1.856 MB / 483.3 MB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0173/0.3178, allocations: 8.536 MB / 491.9 MB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04381/0.3616, allocations: 36.66 MB / 0.5161 GB, free: 3.445 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009223/0.3708, allocations: 3.078 MB / 0.5192 GB, free: 340 kB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002501/0.3733, allocations: 1.698 MB / 0.5208 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/0.3842, allocations: 6.621 MB / 0.5273 GB, free: 7.961 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.103e-05/0.3842, allocations: 47.56 kB / 0.5273 GB, free: 7.906 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 3.537e-06/0.3842, allocations: 0 / 0.5273 GB, free: 7.906 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.202/0.5862, allocations: 17.37 MB / 0.5443 GB, free: 107.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.862e-05/0.5862, allocations: 146.4 kB / 0.5444 GB, free: 107.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003057/0.5893, allocations: 3.491 MB / 0.5478 GB, free: 105.9 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001332/0.5894, allocations: 50.19 kB / 0.5479 GB, free: 105.9 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009583/0.5904, allocations: 2.849 MB / 0.5507 GB, free: 103.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003678/0.5908, allocations: 0.6711 MB / 0.5513 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009612/0.5917, allocations: 1.131 MB / 0.5524 GB, free: 102.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.288e-05/0.5918, allocations: 309 kB / 0.5527 GB, free: 102.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002004/0.5938, allocations: 1.939 MB / 0.5546 GB, free: 101.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002769/0.5965, allocations: 5.363 MB / 0.5599 GB, free: 94.82 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005217/0.6017, allocations: 7.92 MB / 0.5676 GB, free: 85.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.965e-05/0.6018, allocations: 36 kB / 0.5676 GB, free: 85.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01099/0.6128, allocations: 8.143 MB / 0.5756 GB, free: 77.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.408e-05/0.6128, allocations: 56 kB / 0.5756 GB, free: 76.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.125e-05/0.6129, allocations: 128.8 kB / 0.5757 GB, free: 76.85 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003297/0.6162, allocations: 1.292 MB / 0.577 GB, free: 75.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003144/0.6193, allocations: 1.262 MB / 0.5782 GB, free: 74.29 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006543/0.6259, allocations: 6.446 MB / 0.5845 GB, free: 67.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/0.6292, allocations: 307.7 kB / 0.5848 GB, free: 67.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003156/0.6295, allocations: 340 kB / 0.5852 GB, free: 67.1 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.00178/0.6313, allocations: 1.807 MB / 0.5869 GB, free: 65.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000372/0.6317, allocations: 321.8 kB / 0.5872 GB, free: 64.97 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005569/0.6372, allocations: 3.355 MB / 0.5905 GB, free: 61.61 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.6372, allocations: 20 kB / 0.5905 GB, free: 61.59 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.6373, allocations: 4 kB / 0.5905 GB, free: 61.58 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.976e-05/0.6373, allocations: 15.59 kB / 0.5905 GB, free: 61.57 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.6478, allocations: 7.528 MB / 0.5979 GB, free: 54.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.238e-06/0.6478, allocations: 0 / 0.5979 GB, free: 54.01 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009678/0.6487, allocations: 239.7 kB / 0.5981 GB, free: 53.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0031/0.6518, allocations: 1.12 MB / 0.5992 GB, free: 52.65 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001066/0.6519, allocations: 24 kB / 0.5992 GB, free: 52.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006304/0.6582, allocations: 6.073 MB / 0.6052 GB, free: 46.45 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.6582, allocations: 4.031 kB / 0.6052 GB, free: 46.45 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007417/0.6657, allocations: 5.709 MB / 0.6107 GB, free: 40.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007797/0.6664, allocations: 297.7 kB / 0.611 GB, free: 40.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003048/0.6667, allocations: 20 kB / 0.611 GB, free: 40.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001121/0.6679, allocations: 91.88 kB / 0.6111 GB, free: 40.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002105/0.6681, allocations: 95.02 kB / 0.6112 GB, free: 40.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.6682, allocations: 44 kB / 0.6113 GB, free: 40.17 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002151/0.6703, allocations: 2.158 MB / 0.6134 GB, free: 38.02 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.6703, allocations: 0 / 0.6134 GB, free: 38.02 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003487/0.6738, allocations: 0.91 MB / 0.6143 GB, free: 37.11 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.6814, allocations: 6.355 MB / 0.6205 GB, free: 30.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005385/0.6868, allocations: 4.583 MB / 0.6249 GB, free: 26.17 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.6868, allocations: 4 kB / 0.625 GB, free: 26.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.6884, allocations: 1.435 MB / 0.6264 GB, free: 24.72 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001809/0.6902, allocations: 366.7 kB / 0.6267 GB, free: 24.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04929/0.7395, allocations: 41.28 MB / 0.667 GB, free: 9.789 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002862/0.7424, allocations: 2.851 MB / 0.6698 GB, free: 6.902 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00344/0.7458, allocations: 1.703 MB / 0.6715 GB, free: 5.195 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001946/0.7478, allocations: 1.589 MB / 0.673 GB, free: 3.605 MB / 478.1 MB Notification: Performance of SimCode: time 7.11e-07/0.7478, allocations: 3.938 kB / 0.673 GB, free: 3.602 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.22/1.968, allocations: 65.34 MB / 0.7368 GB, free: 185.7 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.61/22.58, allocations: 3.375 kB / 0.7368 GB, free: 185.7 MB / 0.5294 GB " [Timeout remaining time 637] (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: 26.629616649006493]