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.0007869/0.0007869, allocations: 79.69 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.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.0008356/0.0008356, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8247/0.8247, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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 2.404e-06/2.404e-06, allocations: 4 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.311e-05/1.551e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.005182/0.005197, allocations: 6.332 MB / 330.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003365/0.008562, allocations: 3.006 MB / 333.9 MB, free: 6.551 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003229/0.008885, allocations: 43.81 kB / 334 MB, free: 6.508 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001073/0.009958, allocations: 0.817 MB / 334.8 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001478/0.01144, allocations: 1.361 MB / 336.1 MB, free: 4.324 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005176/0.01195, allocations: 0.526 MB / 336.7 MB, free: 3.797 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001743/0.0137, allocations: 2.908 MB / 339.6 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009042/0.0146, allocations: 1.332 MB / 340.9 MB, free: 15.53 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008118/0.01541, allocations: 1.185 MB / 342.1 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009431/0.01636, allocations: 1.294 MB / 343.4 MB, free: 13.05 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001443/0.0165, allocations: 136 kB / 343.5 MB, free: 12.91 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008286/0.01733, allocations: 0.8149 MB / 344.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005306/0.01786, allocations: 1.052 MB / 345.4 MB, free: 11.04 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003987/0.01826, allocations: 0.6383 MB / 346 MB, free: 10.4 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.02063, allocations: 3.94 MB / 350 MB, free: 6.449 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.02064, allocations: 0 / 350 MB, free: 6.449 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.02064, allocations: 3.938 kB / 350 MB, free: 6.445 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.824e-05/0.02067, allocations: 0 / 350 MB, free: 6.445 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.003113/0.02378, allocations: 2.904 MB / 352.9 MB, free: 3.496 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.02382, allocations: 12.03 kB / 352.9 MB, free: 3.484 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003285/0.02415, allocations: 446 kB / 353.3 MB, free: 3.039 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003199/0.02735, allocations: 1.742 MB / 355.1 MB, free: 1.293 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001395/0.02874, allocations: 1.321 MB / 356.4 MB, free: 15.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.549e-05/0.02881, allocations: 123 kB / 356.5 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000203/0.02901, allocations: 151.8 kB / 356.6 MB, free: 15.67 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005214/0.03422, allocations: 6.37 MB / 363 MB, free: 8.777 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.79e-05/0.03427, allocations: 31.73 kB / 363 MB, free: 8.746 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001596/0.03443, allocations: 79.89 kB / 363.1 MB, free: 8.668 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001315/0.03575, allocations: 1.433 MB / 364.6 MB, free: 7.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005749/0.0415, allocations: 5.677 MB / 370.2 MB, free: 1.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01582/0.05731, allocations: 25.41 MB / 395.6 MB, free: 7.297 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002335/0.05965, allocations: 1.786 MB / 397.4 MB, free: 5.477 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007915/0.06044, allocations: 0.9442 MB / 398.4 MB, free: 4.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.767e-05/0.06048, allocations: 12 kB / 398.4 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.0605, allocations: 42.5 kB / 398.4 MB, free: 4.457 MB / 362.7 MB Notification: Performance of pre-optimization done (n=98): time 3.857e-06/0.0605, allocations: 3.984 kB / 398.4 MB, free: 4.453 MB / 362.7 MB Notification: Performance of matching and sorting (n=106): time 0.01192/0.07242, allocations: 8.786 MB / 407.2 MB, free: 11.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.07248, allocations: 148.4 kB / 407.4 MB, free: 11.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.07503, allocations: 3.15 MB / 410.5 MB, free: 8.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.776e-05/0.07508, allocations: 37.7 kB / 410.5 MB, free: 8.207 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000887/0.07597, allocations: 2.135 MB / 412.7 MB, free: 6.051 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.07622, allocations: 464.6 kB / 413.1 MB, free: 5.594 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007021/0.07692, allocations: 0.8658 MB / 414 MB, free: 4.715 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.618e-05/0.07698, allocations: 305.1 kB / 414.3 MB, free: 4.414 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.07832, allocations: 1.418 MB / 415.7 MB, free: 2.988 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002552/0.08087, allocations: 4.238 MB / 420 MB, free: 13.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004299/0.08517, allocations: 6.13 MB / 426.1 MB, free: 5.781 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.485e-05/0.0852, allocations: 32 kB / 426.1 MB, free: 5.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.006122/0.09132, allocations: 6.108 MB / 432.2 MB, free: 15.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.98e-05/0.09136, allocations: 48 kB / 432.3 MB, free: 15.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.719e-05/0.09142, allocations: 104 kB / 432.4 MB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.09261, allocations: 0.8002 MB / 433.2 MB, free: 14.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00143/0.09404, allocations: 0.9942 MB / 434.2 MB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003554/0.09759, allocations: 4.35 MB / 438.5 MB, free: 9.227 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.09911, allocations: 299.5 kB / 438.8 MB, free: 8.934 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001973/0.0993, allocations: 276 kB / 439.1 MB, free: 8.664 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.001132/0.1004, allocations: 1.364 MB / 440.4 MB, free: 7.285 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001998/0.1006, allocations: 250.3 kB / 440.7 MB, free: 7.039 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002119/0.1028, allocations: 1.855 MB / 442.5 MB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.1028, allocations: 12 kB / 442.6 MB, free: 5.16 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.1028, allocations: 4 kB / 442.6 MB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.1028, allocations: 7.922 kB / 442.6 MB, free: 5.148 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004716/0.1075, allocations: 4.59 MB / 447.2 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.686e-06/0.1075, allocations: 0 / 447.2 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002975/0.1078, allocations: 135.8 kB / 447.3 MB, free: 372 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1459/0.2537, allocations: 0.6368 MB / 447.9 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001956/0.2539, allocations: 19.81 kB / 447.9 MB, free: 112 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/0.2575, allocations: 3.85 MB / 451.8 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.2575, allocations: 0 / 451.8 MB, free: 110.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003362/0.2609, allocations: 3.686 MB / 455.5 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003675/0.2612, allocations: 257.3 kB / 455.7 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.2614, allocations: 14.59 kB / 455.7 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005497/0.2619, allocations: 102.3 kB / 455.8 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.262, allocations: 67.2 kB / 455.9 MB, free: 109.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.327e-05/0.2621, allocations: 27.16 kB / 455.9 MB, free: 109.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001647/0.2637, allocations: 1.88 MB / 457.8 MB, free: 108.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2637, allocations: 0 / 457.8 MB, free: 108.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002113/0.2658, allocations: 0.7158 MB / 458.5 MB, free: 108.6 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.003278/0.2691, allocations: 4.336 MB / 462.9 MB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002776/0.2719, allocations: 3.285 MB / 466.2 MB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2719, allocations: 3.844 kB / 466.2 MB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006015/0.2725, allocations: 0.8681 MB / 467 MB, free: 103 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008925/0.2734, allocations: 262.3 kB / 467.3 MB, free: 102.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02018/0.2936, allocations: 30.57 MB / 497.9 MB, free: 68.77 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.2946, allocations: 1.616 MB / 499.5 MB, free: 67.13 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001482/0.2961, allocations: 1.409 MB / 0.4891 GB, free: 65.72 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006567/0.2967, allocations: 1.051 MB / 0.4902 GB, free: 64.67 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/0.2967, allocations: 0 / 0.4902 GB, free: 64.67 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04043/0.3371, allocations: 43.31 MB / 0.5325 GB, free: 21.92 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.439/8.776, allocations: 21.81 kB / 0.5325 GB, free: 21.9 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/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: 10.491929304786026]