Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.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.00172/0.00172, 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.001967/0.001967, allocations: 212.4 kB / 23.74 MB, free: 4.672 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.673/1.673, allocations: 230.6 MB / 257.5 MB, free: 7.988 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.Pendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002013/0.002013, allocations: 59.91 kB / 377.8 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4026/0.4046, allocations: 53.35 MB / 431.1 MB, free: 6.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01562/0.4202, allocations: 7.154 MB / 438.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.4325, allocations: 3.223 MB / 441.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002763/0.4353, allocations: 35.88 kB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004043/0.4393, allocations: 0.8015 MB / 442.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006993/0.4463, allocations: 1.319 MB / 443.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002018/0.4484, allocations: 0.4912 MB / 444.2 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007089/0.4554, allocations: 2.558 MB / 446.7 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002875/0.4583, allocations: 1.086 MB / 447.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00295/0.4613, allocations: 0.7628 MB / 448.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003871/0.4651, allocations: 1.211 MB / 449.8 MB, free: 4.121 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009558/0.4661, allocations: 132 kB / 449.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003735/0.4698, allocations: 0.9047 MB / 450.8 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00271/0.4725, allocations: 1.005 MB / 451.8 MB, free: 2.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004142/0.4767, allocations: 1.176 MB / 453 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009823/0.4865, allocations: 3.945 MB / 456.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.919e-06/0.4865, allocations: 4 kB / 456.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4865, allocations: 0 / 456.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001779/0.4867, allocations: 0 / 456.9 MB, free: 12.93 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: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.01382/0.5005, allocations: 2.873 MB / 459.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.247e-05/0.5006, allocations: 16.03 kB / 459.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001572/0.5022, allocations: 453.9 kB / 460.3 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01077/0.5129, allocations: 1.664 MB / 461.9 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006017/0.519, allocations: 1.481 MB / 463.4 MB, free: 6.367 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.5192, allocations: 122.8 kB / 463.5 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008554/0.52, allocations: 155.9 kB / 463.7 MB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.5348, allocations: 6.363 MB / 470.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000128/0.5349, allocations: 31.7 kB / 470.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000478/0.5354, allocations: 79.89 kB / 470.2 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003196/0.5386, allocations: 1.437 MB / 471.6 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01347/0.552, allocations: 5.669 MB / 477.3 MB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04533/0.5974, allocations: 26.14 MB / 0.4916 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00499/0.6024, allocations: 1.73 MB / 0.4933 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.6039, allocations: 0.9443 MB / 0.4942 GB, free: 10.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.279e-05/0.604, allocations: 12 kB / 0.4942 GB, free: 10.28 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.043e-05/0.604, allocations: 38.56 kB / 0.4943 GB, free: 10.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=98): time 4.498e-06/0.604, allocations: 3.938 kB / 0.4943 GB, free: 10.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=106): time 0.02661/0.6306, allocations: 8.493 MB / 0.5026 GB, free: 1.664 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/0.6308, allocations: 148.5 kB / 0.5027 GB, free: 1.488 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007224/0.638, allocations: 2.828 MB / 0.5055 GB, free: 14.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.6381, allocations: 37.7 kB / 0.5055 GB, free: 14.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002728/0.6409, allocations: 2.155 MB / 0.5076 GB, free: 12.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006166/0.6415, allocations: 456.6 kB / 0.508 GB, free: 11.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001759/0.6432, allocations: 0.8854 MB / 0.5089 GB, free: 11.08 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002165/0.6435, allocations: 301.1 kB / 0.5092 GB, free: 10.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002837/0.6463, allocations: 1.414 MB / 0.5106 GB, free: 9.359 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00635/0.6526, allocations: 4.234 MB / 0.5147 GB, free: 3.695 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009651/0.6623, allocations: 6.124 MB / 0.5207 GB, free: 12.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001191/0.6624, allocations: 28 kB / 0.5207 GB, free: 12.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01548/0.6779, allocations: 6.087 MB / 0.5267 GB, free: 6.039 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001706/0.6781, allocations: 52 kB / 0.5267 GB, free: 5.988 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002762/0.6783, allocations: 103.9 kB / 0.5268 GB, free: 5.887 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003081/0.6814, allocations: 0.7933 MB / 0.5276 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003622/0.685, allocations: 0.9902 MB / 0.5286 GB, free: 4.098 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007176/0.6922, allocations: 4.365 MB / 0.5328 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004311/0.6965, allocations: 255.6 kB / 0.5331 GB, free: 15.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006459/0.6972, allocations: 280 kB / 0.5333 GB, free: 15.09 MB / 462.1 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.003439/0.7006, allocations: 1.364 MB / 0.5347 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006843/0.7013, allocations: 250.3 kB / 0.5349 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004881/0.7062, allocations: 1.838 MB / 0.5367 GB, free: 11.61 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001005/0.7063, allocations: 19.94 kB / 0.5367 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.131e-05/0.7063, allocations: 4 kB / 0.5367 GB, free: 11.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-05/0.7064, allocations: 3.984 kB / 0.5367 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/0.7188, allocations: 4.741 MB / 0.5414 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.087e-05/0.7188, allocations: 0 / 0.5414 GB, free: 6.766 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006476/0.7195, allocations: 135.8 kB / 0.5415 GB, free: 6.633 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002244/0.7217, allocations: 0.6522 MB / 0.5421 GB, free: 5.977 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003744/0.7221, allocations: 16 kB / 0.5421 GB, free: 5.961 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006361/0.7285, allocations: 3.861 MB / 0.5459 GB, free: 1.984 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.046e-06/0.7285, allocations: 4.031 kB / 0.5459 GB, free: 1.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4013/1.13, allocations: 3.687 MB / 0.5495 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001802/1.132, allocations: 232.8 kB / 0.5497 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002889/1.132, allocations: 17.19 kB / 0.5497 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/1.133, allocations: 63.86 kB / 0.5498 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002545/1.133, allocations: 57.53 kB / 0.5499 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/1.133, allocations: 32.61 kB / 0.5499 GB, free: 113.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004521/1.138, allocations: 1.756 MB / 0.5516 GB, free: 113.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/1.138, allocations: 2.688 kB / 0.5516 GB, free: 113.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005265/1.143, allocations: 0.6259 MB / 0.5522 GB, free: 113.3 MB / 462.1 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.008403/1.151, allocations: 4.323 MB / 0.5564 GB, free: 111.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006755/1.158, allocations: 3.29 MB / 0.5597 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.158, allocations: 0.8125 kB / 0.5597 GB, free: 110.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001775/1.16, allocations: 0.872 MB / 0.5605 GB, free: 110 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001906/1.162, allocations: 253.2 kB / 0.5608 GB, free: 109.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04606/1.208, allocations: 30.23 MB / 0.5903 GB, free: 79.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0023/1.21, allocations: 2.188 MB / 0.5924 GB, free: 77.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002947/1.213, allocations: 1.396 MB / 0.5938 GB, free: 76.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001155/1.214, allocations: 1.05 MB / 0.5948 GB, free: 75.29 MB / 462.1 MB Notification: Performance of SimCode: time 1.713e-06/1.214, allocations: 0 / 0.5948 GB, free: 75.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/1.321, allocations: 45.46 MB / 0.6392 GB, free: 30.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.77/22.09, allocations: 8.922 kB / 0.6392 GB, free: 30.13 MB / 462.1 MB " [Timeout remaining time 638] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 25.1557183470577]