Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.000831/0.000831, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007303/0.0007303, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9/0.9, allocations: 173.3 MB / 200.4 MB, free: 9.43 MB / 186.7 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.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 318.4 MB, free: 6.234 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.231e-05, allocations: 2.281 kB / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00573/0.005752, allocations: 6.339 MB / 324.8 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0044/0.01015, allocations: 2.99 MB / 327.8 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.01065, allocations: 35.88 kB / 327.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001238/0.01189, allocations: 0.8091 MB / 328.6 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002013/0.0139, allocations: 1.389 MB / 330 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007972/0.0147, allocations: 0.5377 MB / 330.5 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002078/0.01678, allocations: 2.846 MB / 333.4 MB, free: 7.227 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00125/0.01803, allocations: 1.344 MB / 334.7 MB, free: 5.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001082/0.01911, allocations: 1.196 MB / 335.9 MB, free: 4.664 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001155/0.02026, allocations: 1.298 MB / 337.2 MB, free: 3.363 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.02044, allocations: 140 kB / 337.4 MB, free: 3.227 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008565/0.0213, allocations: 0.8267 MB / 338.2 MB, free: 2.398 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006172/0.02192, allocations: 1.067 MB / 339.3 MB, free: 1.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000445/0.02236, allocations: 0.6461 MB / 339.9 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002535/0.0249, allocations: 3.99 MB / 343.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.052e-06/0.0249, allocations: 3.984 kB / 343.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0249, allocations: 4 kB / 343.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.912e-05/0.02492, allocations: 4 kB / 343.9 MB, free: 12.66 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.003121/0.02804, allocations: 2.919 MB / 346.8 MB, free: 9.695 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.02809, allocations: 12.92 kB / 346.8 MB, free: 9.684 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003482/0.02844, allocations: 450 kB / 347.3 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003242/0.03168, allocations: 1.75 MB / 349 MB, free: 7.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001393/0.03308, allocations: 1.313 MB / 350.3 MB, free: 6.141 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.032e-05/0.03315, allocations: 119 kB / 350.5 MB, free: 6.023 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002109/0.03336, allocations: 151.9 kB / 350.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005376/0.03873, allocations: 6.367 MB / 357 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.251e-05/0.03878, allocations: 31.7 kB / 357 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001554/0.03893, allocations: 91.88 kB / 357.1 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001378/0.04031, allocations: 1.429 MB / 358.5 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005815/0.04612, allocations: 5.689 MB / 364.2 MB, free: 7.738 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01695/0.06308, allocations: 25.41 MB / 389.6 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002426/0.0655, allocations: 1.776 MB / 391.4 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008379/0.06634, allocations: 0.9432 MB / 392.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.89e-05/0.06638, allocations: 8 kB / 392.3 MB, free: 10.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.06641, allocations: 50.5 kB / 392.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 3.376e-06/0.06641, allocations: 0 / 392.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01224/0.07865, allocations: 8.782 MB / 401.2 MB, free: 1.801 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.077e-05/0.07871, allocations: 148.5 kB / 401.3 MB, free: 1.625 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002703/0.08142, allocations: 3.158 MB / 404.5 MB, free: 14.45 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.947e-05/0.08147, allocations: 41.7 kB / 404.5 MB, free: 14.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000925/0.08239, allocations: 2.135 MB / 406.7 MB, free: 12.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002526/0.08264, allocations: 448.7 kB / 407.1 MB, free: 11.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000718/0.08336, allocations: 0.8736 MB / 408 MB, free: 10.92 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.072e-05/0.08344, allocations: 317.1 kB / 408.3 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001369/0.08481, allocations: 1.41 MB / 409.7 MB, free: 9.188 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00271/0.08752, allocations: 4.245 MB / 413.9 MB, free: 3.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004406/0.09193, allocations: 6.126 MB / 420.1 MB, free: 11.98 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.627e-05/0.09195, allocations: 32 kB / 420.1 MB, free: 11.95 MB / 394.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.006382/0.09834, allocations: 6.113 MB / 426.2 MB, free: 5.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.755e-05/0.09838, allocations: 48.19 kB / 426.3 MB, free: 5.777 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.375e-05/0.09845, allocations: 104 kB / 426.4 MB, free: 5.676 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001263/0.09971, allocations: 0.7966 MB / 427.2 MB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.1012, allocations: 0.9902 MB / 428.1 MB, free: 3.883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003953/0.1051, allocations: 4.357 MB / 432.5 MB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/0.1069, allocations: 303.5 kB / 432.8 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002118/0.1071, allocations: 272 kB / 433.1 MB, free: 14.85 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 459 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (533): * Single equations (assignments): 529 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001384/0.1085, allocations: 1.372 MB / 434.4 MB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002278/0.1087, allocations: 254.3 kB / 434.7 MB, free: 13.21 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00219/0.1109, allocations: 1.835 MB / 436.5 MB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/0.1109, allocations: 16 kB / 436.5 MB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.1109, allocations: 0 / 436.5 MB, free: 11.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.1109, allocations: 11.92 kB / 436.5 MB, free: 11.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005324/0.1162, allocations: 4.583 MB / 441.1 MB, free: 6.691 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.1163, allocations: 4 kB / 441.1 MB, free: 6.688 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003248/0.1166, allocations: 131.8 kB / 441.3 MB, free: 6.559 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001096/0.1177, allocations: 0.6483 MB / 441.9 MB, free: 5.906 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.595e-05/0.1177, allocations: 16 kB / 441.9 MB, free: 5.891 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003329/0.1211, allocations: 3.845 MB / 445.8 MB, free: 1.926 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.1211, allocations: 8.312 kB / 445.8 MB, free: 1.918 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2037/0.3248, allocations: 3.688 MB / 449.5 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008918/0.3257, allocations: 255.1 kB / 449.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002793/0.3259, allocations: 25.34 kB / 449.7 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007003/0.3266, allocations: 96.52 kB / 449.8 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.3268, allocations: 60.16 kB / 449.9 MB, free: 117.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.424e-05/0.3268, allocations: 34.69 kB / 449.9 MB, free: 117.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002132/0.329, allocations: 1.881 MB / 451.8 MB, free: 117.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.329, allocations: 0 / 451.8 MB, free: 117.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002671/0.3316, allocations: 0.7333 MB / 452.5 MB, free: 117.1 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * 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 {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004065/0.3357, allocations: 4.337 MB / 456.9 MB, free: 115.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004631/0.3403, allocations: 3.294 MB / 460.2 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.3403, allocations: 0 / 460.2 MB, free: 114.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00081/0.3411, allocations: 0.8699 MB / 461 MB, free: 113.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001626/0.3428, allocations: 259.3 kB / 461.3 MB, free: 113.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02992/0.3727, allocations: 30.61 MB / 491.9 MB, free: 80.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001235/0.3739, allocations: 1.611 MB / 493.5 MB, free: 78.65 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001811/0.3757, allocations: 1.414 MB / 494.9 MB, free: 77.23 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009288/0.3767, allocations: 1.051 MB / 496 MB, free: 76.18 MB / 410.7 MB Notification: Performance of SimCode: time 2.645e-06/0.3767, allocations: 4 kB / 496 MB, free: 76.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06239/0.4391, allocations: 43.49 MB / 0.5268 GB, free: 33.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.056/9.495, allocations: 15.3 kB / 0.5268 GB, free: 33.2 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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: 11.356568477116525]