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.001434/0.001434, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001487/0.001487, allocations: 195.7 kB / 24.5 MB, free: 4.008 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.257/1.257, allocations: 225.6 MB / 253.3 MB, free: 13.05 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.001363/0.001363, allocations: 52.06 kB / 371.2 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2139/0.2153, allocations: 52.19 MB / 423.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008455/0.2237, allocations: 7.17 MB / 430.6 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005379/0.2291, allocations: 3.193 MB / 433.8 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005062/0.2296, allocations: 43.81 kB / 433.8 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001484/0.2311, allocations: 0.8015 MB / 434.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002622/0.2337, allocations: 1.347 MB / 436 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001066/0.2348, allocations: 495 kB / 436.5 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003156/0.2379, allocations: 2.534 MB / 439 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.2393, allocations: 1.098 MB / 440.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009569/0.2403, allocations: 0.7822 MB / 440.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001451/0.2417, allocations: 1.211 MB / 442.1 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000233/0.242, allocations: 132 kB / 442.2 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001463/0.2434, allocations: 0.9242 MB / 443.1 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008444/0.2443, allocations: 1.016 MB / 444.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009982/0.2453, allocations: 1.199 MB / 445.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003819/0.2491, allocations: 3.992 MB / 449.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2491, allocations: 4 kB / 449.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2491, allocations: 0 / 449.4 MB, free: 4.699 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.33e-05/0.2491, allocations: 0 / 449.4 MB, free: 4.699 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.004356/0.2535, allocations: 2.888 MB / 452.2 MB, free: 1.766 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.2535, allocations: 15.97 kB / 452.3 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.306e-05/0.2536, allocations: 59.16 kB / 452.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004484/0.254, allocations: 450 kB / 452.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005692/0.2597, allocations: 1.668 MB / 454.4 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002665/0.2624, allocations: 1.582 MB / 456 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.991e-05/0.2625, allocations: 114.9 kB / 456.1 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002917/0.2628, allocations: 155.8 kB / 456.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008203/0.271, allocations: 6.367 MB / 462.6 MB, free: 6.797 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.898e-05/0.271, allocations: 27.8 kB / 462.7 MB, free: 6.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002122/0.2712, allocations: 83.83 kB / 462.7 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002343/0.2736, allocations: 1.433 MB / 464.2 MB, free: 5.254 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009285/0.2829, allocations: 5.666 MB / 469.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02781/0.3107, allocations: 26.15 MB / 496 MB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003868/0.3146, allocations: 1.74 MB / 497.7 MB, free: 2.828 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001241/0.3158, allocations: 0.9437 MB / 498.7 MB, free: 1.875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.3158, allocations: 15.98 kB / 498.7 MB, free: 1.859 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.3159, allocations: 38.56 kB / 498.7 MB, free: 1.812 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.615e-06/0.3159, allocations: 0 / 498.7 MB, free: 1.812 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.01974/0.3356, allocations: 8.498 MB / 0.4953 GB, free: 9.238 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.145e-05/0.3357, allocations: 144.5 kB / 0.4955 GB, free: 9.066 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003627/0.3393, allocations: 2.828 MB / 0.4982 GB, free: 6.223 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.429e-05/0.3394, allocations: 41.7 kB / 0.4983 GB, free: 6.176 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.341, allocations: 2.159 MB / 0.5004 GB, free: 3.996 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004171/0.3414, allocations: 460.6 kB / 0.5008 GB, free: 3.543 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00107/0.3424, allocations: 0.8893 MB / 0.5017 GB, free: 2.641 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3426, allocations: 301.1 kB / 0.502 GB, free: 2.344 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00201/0.3446, allocations: 1.41 MB / 0.5034 GB, free: 0.9258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004011/0.3486, allocations: 4.234 MB / 0.5075 GB, free: 11.26 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006528/0.3551, allocations: 6.133 MB / 0.5135 GB, free: 3.715 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.797e-05/0.3552, allocations: 28 kB / 0.5135 GB, free: 3.688 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009911/0.3651, allocations: 6.083 MB / 0.5194 GB, free: 13.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.557e-05/0.3651, allocations: 51.94 kB / 0.5195 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000115/0.3653, allocations: 100 kB / 0.5196 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002154/0.3674, allocations: 0.8011 MB / 0.5204 GB, free: 12.64 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002547/0.37, allocations: 0.9863 MB / 0.5213 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005643/0.3756, allocations: 4.372 MB / 0.5256 GB, free: 7.172 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002539/0.3781, allocations: 251.6 kB / 0.5258 GB, free: 6.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003952/0.3785, allocations: 276 kB / 0.5261 GB, free: 6.656 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.001805/0.3803, allocations: 1.364 MB / 0.5274 GB, free: 5.281 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.3807, allocations: 246.4 kB / 0.5277 GB, free: 5.039 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003777/0.3845, allocations: 1.845 MB / 0.5295 GB, free: 3.176 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.018e-05/0.3845, allocations: 16 kB / 0.5295 GB, free: 3.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.3845, allocations: 4 kB / 0.5295 GB, free: 3.156 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.3846, allocations: 7.984 kB / 0.5295 GB, free: 3.148 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00819/0.3927, allocations: 4.739 MB / 0.5341 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.3928, allocations: 4 kB / 0.5341 GB, free: 14.33 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005516/0.3933, allocations: 139.8 kB / 0.5343 GB, free: 14.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.3952, allocations: 0.6483 MB / 0.5349 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.4e-05/0.3953, allocations: 12 kB / 0.5349 GB, free: 13.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004754/0.4, allocations: 3.862 MB / 0.5387 GB, free: 9.551 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.4, allocations: 3.984 kB / 0.5387 GB, free: 9.547 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005421/0.4055, allocations: 3.693 MB / 0.5423 GB, free: 5.828 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004244/0.4059, allocations: 222.3 kB / 0.5425 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000254/0.4061, allocations: 23.94 kB / 0.5425 GB, free: 5.586 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008148/0.407, allocations: 63.91 kB / 0.5426 GB, free: 5.523 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.4071, allocations: 55.95 kB / 0.5426 GB, free: 5.469 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.451e-05/0.4072, allocations: 35.98 kB / 0.5427 GB, free: 5.434 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00227/0.4094, allocations: 1.754 MB / 0.5444 GB, free: 3.672 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4094, allocations: 0 / 0.5444 GB, free: 3.672 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002657/0.4121, allocations: 0.6444 MB / 0.545 GB, free: 3.027 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.1667/0.5788, allocations: 4.31 MB / 0.5492 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00455/0.5834, allocations: 3.297 MB / 0.5525 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.5834, allocations: 0 / 0.5525 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009397/0.5843, allocations: 0.8741 MB / 0.5533 GB, free: 121.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/0.5858, allocations: 256.9 kB / 0.5535 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02524/0.6111, allocations: 30.25 MB / 0.5831 GB, free: 94.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001325/0.6124, allocations: 2.19 MB / 0.5852 GB, free: 91.81 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00206/0.6144, allocations: 1.4 MB / 0.5866 GB, free: 90.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008586/0.6153, allocations: 1.05 MB / 0.5876 GB, free: 89.36 MB / 462.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6153, allocations: 0 / 0.5876 GB, free: 89.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7862/1.402, allocations: 45.57 MB / 0.6321 GB, free: 44.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.29/20.69, allocations: 11.3 kB / 0.6321 GB, free: 44.11 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: 24.400766564009245]