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.001641/0.001641, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.00184/0.00184, allocations: 189.1 kB / 24.49 MB, free: 3.98 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.314/1.314, allocations: 225.7 MB / 253.3 MB, free: 12.87 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.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 47.92 kB / 371.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2227, allocations: 52.18 MB / 423.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00776/0.2305, allocations: 6.314 MB / 429.7 MB, free: 8.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005445/0.2359, allocations: 2.964 MB / 432.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007507/0.2367, allocations: 35.88 kB / 432.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.2383, allocations: 0.782 MB / 433.5 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002799/0.2411, allocations: 1.354 MB / 434.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009619/0.242, allocations: 0.4911 MB / 435.3 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002927/0.245, allocations: 2.526 MB / 437.8 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001231/0.2462, allocations: 1.1 MB / 438.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008592/0.247, allocations: 0.7745 MB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001388/0.2484, allocations: 1.222 MB / 440.9 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002326/0.2487, allocations: 132 kB / 441.1 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001265/0.2499, allocations: 0.7917 MB / 441.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008549/0.2508, allocations: 1.02 MB / 442.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008046/0.2516, allocations: 0.8613 MB / 443.7 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003705/0.2553, allocations: 4.003 MB / 447.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2553, allocations: 0 / 447.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.093e-06/0.2553, allocations: 0 / 447.7 MB, free: 5.965 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.707e-05/0.2553, allocations: 0 / 447.7 MB, free: 5.965 MB / 350.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.004253/0.2596, allocations: 2.888 MB / 450.6 MB, free: 3.031 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.2596, allocations: 8.031 kB / 450.6 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.796e-05/0.2597, allocations: 63.16 kB / 450.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004617/0.2601, allocations: 450 kB / 451.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005572/0.2657, allocations: 1.668 MB / 452.8 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002644/0.2684, allocations: 1.59 MB / 454.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.682e-05/0.2685, allocations: 114.9 kB / 454.5 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003291/0.2688, allocations: 155.8 kB / 454.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008283/0.2771, allocations: 6.359 MB / 461 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.255e-05/0.2771, allocations: 35.73 kB / 461 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002158/0.2773, allocations: 79.89 kB / 461.1 MB, free: 7.953 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002302/0.2796, allocations: 1.437 MB / 462.6 MB, free: 6.516 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008915/0.2886, allocations: 5.681 MB / 468.2 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0264/0.315, allocations: 25.29 MB / 493.5 MB, free: 6.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003802/0.3188, allocations: 1.728 MB / 495.3 MB, free: 4.938 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001205/0.32, allocations: 0.9404 MB / 496.2 MB, free: 3.984 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.226e-05/0.32, allocations: 11.94 kB / 496.2 MB, free: 3.973 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.3201, allocations: 46.56 kB / 496.3 MB, free: 3.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.416e-06/0.3201, allocations: 0 / 496.3 MB, free: 3.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01936/0.3394, allocations: 8.537 MB / 0.493 GB, free: 11.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.779e-05/0.3395, allocations: 136.5 kB / 0.4931 GB, free: 11.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00337/0.3429, allocations: 2.836 MB / 0.4959 GB, free: 8.293 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.569e-05/0.3429, allocations: 37.7 kB / 0.4959 GB, free: 8.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001473/0.3444, allocations: 2.166 MB / 0.498 GB, free: 6.062 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003821/0.3448, allocations: 452.6 kB / 0.4984 GB, free: 5.617 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00103/0.3458, allocations: 0.8932 MB / 0.4993 GB, free: 4.711 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3459, allocations: 301.1 kB / 0.4996 GB, free: 4.414 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/0.3479, allocations: 1.406 MB / 0.501 GB, free: 3 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/0.352, allocations: 4.238 MB / 0.5051 GB, free: 13.33 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00676/0.3588, allocations: 6.123 MB / 0.5111 GB, free: 5.797 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.193e-05/0.3589, allocations: 32 kB / 0.5111 GB, free: 5.766 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009846/0.3687, allocations: 6.077 MB / 0.5171 GB, free: 15.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.732e-05/0.3688, allocations: 53.97 kB / 0.5171 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.604e-05/0.3689, allocations: 104.2 kB / 0.5172 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/0.371, allocations: 0.7967 MB / 0.518 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002591/0.3736, allocations: 0.9863 MB / 0.519 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005566/0.3792, allocations: 4.334 MB / 0.5232 GB, free: 9.289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/0.3818, allocations: 247.6 kB / 0.5234 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003748/0.3821, allocations: 272 kB / 0.5237 GB, free: 8.781 MB / 446.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.001789/0.3839, allocations: 1.383 MB / 0.525 GB, free: 7.387 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003638/0.3843, allocations: 242.4 kB / 0.5253 GB, free: 7.148 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003589/0.3879, allocations: 1.845 MB / 0.5271 GB, free: 5.285 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.167e-05/0.3879, allocations: 16 kB / 0.5271 GB, free: 5.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.106e-06/0.3879, allocations: 4 kB / 0.5271 GB, free: 5.266 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.3879, allocations: 3.984 kB / 0.5271 GB, free: 5.262 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007774/0.3957, allocations: 4.521 MB / 0.5315 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.3957, allocations: 0 / 0.5315 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005855/0.3963, allocations: 143.8 kB / 0.5316 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/0.3982, allocations: 0.6444 MB / 0.5323 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-05/0.3983, allocations: 16 kB / 0.5323 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004867/0.4031, allocations: 3.819 MB / 0.536 GB, free: 11.94 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.4031, allocations: 4.031 kB / 0.536 GB, free: 11.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005562/0.4087, allocations: 3.698 MB / 0.5396 GB, free: 8.211 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004293/0.4091, allocations: 222.6 kB / 0.5398 GB, free: 7.992 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.4094, allocations: 27.86 kB / 0.5399 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008055/0.4102, allocations: 63.91 kB / 0.5399 GB, free: 7.902 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001451/0.4103, allocations: 59.83 kB / 0.54 GB, free: 7.844 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-05/0.4104, allocations: 28 kB / 0.54 GB, free: 7.816 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002422/0.4128, allocations: 1.758 MB / 0.5417 GB, free: 6.051 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4128, allocations: 0 / 0.5417 GB, free: 6.051 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002796/0.4156, allocations: 0.6484 MB / 0.5424 GB, free: 5.402 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.005967/0.4216, allocations: 4.316 MB / 0.5466 GB, free: 1.043 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.1789/0.6005, allocations: 3.281 MB / 0.5498 GB, free: 126 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.6005, allocations: 5.344 kB / 0.5498 GB, free: 126 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/0.6016, allocations: 0.872 MB / 0.5506 GB, free: 125.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001572/0.6031, allocations: 246 kB / 0.5509 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0282/0.6313, allocations: 30.26 MB / 0.5804 GB, free: 97.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/0.6327, allocations: 1.623 MB / 0.582 GB, free: 95.74 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002259/0.635, allocations: 1.397 MB / 0.5834 GB, free: 94.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009444/0.6359, allocations: 1.053 MB / 0.5844 GB, free: 93.29 MB / 462.1 MB Notification: Performance of SimCode: time 1.242e-06/0.6359, allocations: 0 / 0.5844 GB, free: 93.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2073/0.8432, allocations: 43.44 MB / 0.6268 GB, free: 50.47 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.55/20.4, allocations: 11.23 kB / 0.6268 GB, free: 50.46 MB / 462.1 MB " [Timeout remaining time 639] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/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: 23.68214306794107]