Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001516/0.001516, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001826/0.001826, allocations: 217 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.579/1.579, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 47.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3588/0.3605, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01453/0.3751, allocations: 10.35 MB / 441.5 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009507/0.3846, allocations: 3.917 MB / 445.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002079/0.3867, allocations: 63.69 kB / 445.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004868/0.3915, allocations: 2.114 MB / 447.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005348/0.3969, allocations: 1.654 MB / 449.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.3991, allocations: 0.6862 MB / 449.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00658/0.4057, allocations: 3.392 MB / 453.3 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00418/0.4099, allocations: 2.227 MB / 455.5 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003086/0.413, allocations: 1.269 MB / 456.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00401/0.417, allocations: 1.896 MB / 458.7 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001171/0.4182, allocations: 260 kB / 459 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.4215, allocations: 1.143 MB / 460.1 MB, free: 9.758 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002608/0.4241, allocations: 1.601 MB / 461.7 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004418/0.4286, allocations: 1.856 MB / 463.6 MB, free: 6.285 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01047/0.439, allocations: 5.914 MB / 469.5 MB, free: 356 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.439, allocations: 0 / 469.5 MB, free: 356 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.439, allocations: 4 kB / 469.5 MB, free: 352 kB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002879/0.4393, allocations: 3.938 kB / 469.5 MB, free: 348 kB / 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.01289/0.4522, allocations: 4.153 MB / 473.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.527e-05/0.4523, allocations: 8.031 kB / 473.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001922/0.4542, allocations: 0.6374 MB / 474.3 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007355/0.4615, allocations: 1.89 MB / 476.2 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006144/0.4677, allocations: 2.048 MB / 478.2 MB, free: 7.492 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002646/0.468, allocations: 205.1 kB / 478.4 MB, free: 7.289 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001258/0.4692, allocations: 271.8 kB / 478.7 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02417/0.4934, allocations: 10 MB / 488.7 MB, free: 12.34 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002241/0.4936, allocations: 39.62 kB / 488.7 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001387/0.495, allocations: 139.9 kB / 488.9 MB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003707/0.4987, allocations: 1.844 MB / 490.7 MB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02129/0.52, allocations: 8.567 MB / 499.3 MB, free: 1.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05953/0.5795, allocations: 36.66 MB / 0.5234 GB, free: 12.03 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01049/0.59, allocations: 3.102 MB / 0.5264 GB, free: 8.898 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002869/0.5929, allocations: 1.693 MB / 0.5281 GB, free: 7.195 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.6071, allocations: 6.632 MB / 0.5345 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.218e-05/0.6072, allocations: 51.56 kB / 0.5346 GB, free: 472 kB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.991e-06/0.6072, allocations: 0 / 0.5346 GB, free: 472 kB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.3796/0.9868, allocations: 17.49 MB / 0.5517 GB, free: 97.82 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.023e-05/0.9869, allocations: 157.4 kB / 0.5518 GB, free: 97.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004421/0.9913, allocations: 3.479 MB / 0.5552 GB, free: 94.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/0.9915, allocations: 52.91 kB / 0.5553 GB, free: 94.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001616/0.9931, allocations: 2.84 MB / 0.558 GB, free: 91.61 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005961/0.9937, allocations: 0.6727 MB / 0.5587 GB, free: 90.95 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001152/0.9949, allocations: 1.12 MB / 0.5598 GB, free: 89.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.201e-05/0.9949, allocations: 301.1 kB / 0.5601 GB, free: 89.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002233/0.9972, allocations: 1.962 MB / 0.562 GB, free: 87.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003654/1.001, allocations: 5.373 MB / 0.5672 GB, free: 80.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007171/1.008, allocations: 7.945 MB / 0.575 GB, free: 70.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.882e-05/1.008, allocations: 36 kB / 0.575 GB, free: 70.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=724) (initialization): time 0.01299/1.021, allocations: 8.181 MB / 0.583 GB, free: 62.62 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.633e-05/1.021, allocations: 56 kB / 0.5831 GB, free: 62.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001089/1.021, allocations: 124 kB / 0.5832 GB, free: 62.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003639/1.025, allocations: 1.296 MB / 0.5845 GB, free: 61.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00337/1.028, allocations: 1.263 MB / 0.5857 GB, free: 59.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007827/1.036, allocations: 6.434 MB / 0.592 GB, free: 53.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004748/1.041, allocations: 315.6 kB / 0.5923 GB, free: 53.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00047/1.041, allocations: 340 kB / 0.5926 GB, free: 52.69 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.003026/1.044, allocations: 1.815 MB / 0.5944 GB, free: 50.87 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005809/1.045, allocations: 321.8 kB / 0.5947 GB, free: 50.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006214/1.051, allocations: 3.377 MB / 0.598 GB, free: 47.16 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.532e-05/1.051, allocations: 16 kB / 0.598 GB, free: 47.14 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.536e-05/1.051, allocations: 4 kB / 0.598 GB, free: 47.14 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.665e-05/1.051, allocations: 7.984 kB / 0.598 GB, free: 47.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01333/1.064, allocations: 7.542 MB / 0.6054 GB, free: 39.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.314e-05/1.064, allocations: 4 kB / 0.6054 GB, free: 39.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/1.066, allocations: 247.7 kB / 0.6056 GB, free: 39.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003259/1.069, allocations: 1.116 MB / 0.6067 GB, free: 38.18 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001134/1.069, allocations: 28 kB / 0.6067 GB, free: 38.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007181/1.076, allocations: 6.081 MB / 0.6127 GB, free: 31.98 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/1.076, allocations: 8.234 kB / 0.6127 GB, free: 31.97 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008845/1.085, allocations: 5.746 MB / 0.6183 GB, free: 26.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001166/1.086, allocations: 289.7 kB / 0.6186 GB, free: 25.91 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000809/1.087, allocations: 28 kB / 0.6186 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001844/1.089, allocations: 95.86 kB / 0.6187 GB, free: 25.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002767/1.089, allocations: 92.83 kB / 0.6188 GB, free: 25.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.089, allocations: 44.45 kB / 0.6188 GB, free: 25.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003161/1.092, allocations: 2.146 MB / 0.6209 GB, free: 23.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/1.092, allocations: 4 kB / 0.6209 GB, free: 23.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005379/1.098, allocations: 0.8941 MB / 0.6218 GB, free: 22.63 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.008727/1.106, allocations: 6.396 MB / 0.628 GB, free: 16.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007445/1.114, allocations: 4.61 MB / 0.6325 GB, free: 11.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.783e-06/1.114, allocations: 4 kB / 0.6325 GB, free: 11.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00196/1.116, allocations: 1.456 MB / 0.634 GB, free: 10.13 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/1.118, allocations: 362.9 kB / 0.6343 GB, free: 9.777 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08463/1.203, allocations: 41.32 MB / 0.6747 GB, free: 11.17 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005364/1.208, allocations: 2.85 MB / 0.6774 GB, free: 8.281 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004636/1.213, allocations: 1.699 MB / 0.6791 GB, free: 6.578 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002793/1.216, allocations: 1.581 MB / 0.6806 GB, free: 4.996 MB / 494.1 MB Notification: Performance of SimCode: time 1.393e-06/1.216, allocations: 0 / 0.6806 GB, free: 4.996 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3627/1.578, allocations: 65.13 MB / 0.7442 GB, free: 184.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.71/23.29, allocations: 0 / 0.7442 GB, free: 184.3 MB / 0.5294 GB " [Timeout remaining time 637] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper_fmu --startTime=0 --stopTime=10 --stepSize=0.0019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.48934075399302]