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.001741/0.001741, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.001889/0.001889, allocations: 189.9 kB / 23.72 MB, free: 4.684 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.337/1.337, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001533/0.001533, allocations: 47.91 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2408, allocations: 52.19 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009056/0.2498, allocations: 7.162 MB / 429.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006178/0.256, allocations: 3.197 MB / 433 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009401/0.2569, allocations: 39.81 kB / 433 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001809/0.2588, allocations: 0.8092 MB / 433.8 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003103/0.2619, allocations: 1.347 MB / 435.2 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001109/0.263, allocations: 495 kB / 435.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003473/0.2664, allocations: 2.534 MB / 438.2 MB, free: 14.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.268, allocations: 1.098 MB / 439.3 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001245/0.2692, allocations: 0.7744 MB / 440.1 MB, free: 13.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.271, allocations: 1.211 MB / 441.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003729/0.2714, allocations: 136 kB / 441.4 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001703/0.2731, allocations: 0.9164 MB / 442.3 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009955/0.2741, allocations: 1.02 MB / 443.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001293/0.2754, allocations: 1.199 MB / 444.6 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004697/0.2801, allocations: 3.999 MB / 448.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.2801, allocations: 0 / 448.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2801, allocations: 0 / 448.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.907e-05/0.2801, allocations: 0 / 448.6 MB, free: 4.59 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.005131/0.2853, allocations: 2.892 MB / 451.5 MB, free: 1.652 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.2853, allocations: 8.031 kB / 451.5 MB, free: 1.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005256/0.2859, allocations: 450 kB / 451.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005737/0.2916, allocations: 1.664 MB / 453.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003413/0.295, allocations: 1.582 MB / 455.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001096/0.2951, allocations: 118.9 kB / 455.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000355/0.2955, allocations: 151.8 kB / 455.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01067/0.3061, allocations: 6.37 MB / 461.8 MB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-05/0.3062, allocations: 31.73 kB / 461.8 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002686/0.3065, allocations: 79.89 kB / 461.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002405/0.3089, allocations: 1.433 MB / 463.3 MB, free: 5.207 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.319, allocations: 5.673 MB / 469 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03197/0.351, allocations: 26.14 MB / 495.1 MB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.3553, allocations: 1.736 MB / 496.9 MB, free: 2.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001443/0.3568, allocations: 0.9516 MB / 497.8 MB, free: 1.82 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.61e-05/0.3568, allocations: 11.92 kB / 497.8 MB, free: 1.809 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.3569, allocations: 42.56 kB / 497.9 MB, free: 1.758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.198e-06/0.3569, allocations: 0 / 497.9 MB, free: 1.758 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02197/0.3788, allocations: 8.502 MB / 0.4945 GB, free: 9.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.379, allocations: 148.5 kB / 0.4947 GB, free: 9.004 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004948/0.3839, allocations: 2.828 MB / 0.4974 GB, free: 6.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.3841, allocations: 37.7 kB / 0.4975 GB, free: 6.117 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001771/0.3858, allocations: 2.163 MB / 0.4996 GB, free: 3.934 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005848/0.3864, allocations: 456.6 kB / 0.5 GB, free: 3.484 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001573/0.388, allocations: 0.8893 MB / 0.5009 GB, free: 2.582 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.3881, allocations: 301.1 kB / 0.5012 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002468/0.3906, allocations: 1.414 MB / 0.5025 GB, free: 0.8633 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004755/0.3953, allocations: 4.23 MB / 0.5067 GB, free: 11.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007665/0.403, allocations: 6.121 MB / 0.5126 GB, free: 3.672 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001033/0.4031, allocations: 32 kB / 0.5127 GB, free: 3.641 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01204/0.4152, allocations: 6.088 MB / 0.5186 GB, free: 13.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.4153, allocations: 49.88 kB / 0.5187 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000166/0.4154, allocations: 104.2 kB / 0.5188 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002333/0.4178, allocations: 0.7968 MB / 0.5195 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003039/0.4208, allocations: 0.9864 MB / 0.5205 GB, free: 11.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00629/0.4271, allocations: 4.369 MB / 0.5248 GB, free: 7.121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003078/0.4302, allocations: 247.6 kB / 0.525 GB, free: 6.879 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006574/0.4308, allocations: 276 kB / 0.5253 GB, free: 6.609 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.002655/0.4335, allocations: 1.372 MB / 0.5266 GB, free: 5.227 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005907/0.4341, allocations: 242.4 kB / 0.5268 GB, free: 4.988 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004199/0.4383, allocations: 1.841 MB / 0.5286 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.543e-05/0.4383, allocations: 19.94 kB / 0.5287 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.517e-05/0.4383, allocations: 11.98 kB / 0.5287 GB, free: 3.098 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.502e-05/0.4384, allocations: 3.984 kB / 0.5287 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01077/0.4491, allocations: 4.746 MB / 0.5333 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/0.4491, allocations: 4 kB / 0.5333 GB, free: 14.27 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006664/0.4498, allocations: 135.8 kB / 0.5334 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/0.4518, allocations: 0.6483 MB / 0.5341 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.4519, allocations: 23.94 kB / 0.5341 GB, free: 13.46 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005242/0.4572, allocations: 3.854 MB / 0.5379 GB, free: 9.492 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4572, allocations: 0 / 0.5379 GB, free: 9.492 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006357/0.4635, allocations: 3.697 MB / 0.5415 GB, free: 5.77 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007357/0.4643, allocations: 226.3 kB / 0.5417 GB, free: 5.547 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000491/0.4648, allocations: 15.94 kB / 0.5417 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.4659, allocations: 63.91 kB / 0.5418 GB, free: 5.469 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.466, allocations: 55.83 kB / 0.5418 GB, free: 5.414 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.582e-05/0.4661, allocations: 36.06 kB / 0.5419 GB, free: 5.379 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003283/0.4694, allocations: 1.758 MB / 0.5436 GB, free: 3.613 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4694, allocations: 0 / 0.5436 GB, free: 3.613 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00366/0.4731, allocations: 0.6405 MB / 0.5442 GB, free: 2.973 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.2157/0.6888, allocations: 4.314 MB / 0.5484 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00569/0.6944, allocations: 3.287 MB / 0.5516 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.6945, allocations: 3.906 kB / 0.5516 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001166/0.6956, allocations: 0.8741 MB / 0.5525 GB, free: 120.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001708/0.6973, allocations: 250.3 kB / 0.5527 GB, free: 120.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03393/0.7313, allocations: 30.25 MB / 0.5823 GB, free: 93.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002645/0.7339, allocations: 2.189 MB / 0.5844 GB, free: 91.58 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002571/0.7365, allocations: 1.396 MB / 0.5858 GB, free: 90.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001256/0.7377, allocations: 1.05 MB / 0.5868 GB, free: 89.13 MB / 462.1 MB Notification: Performance of SimCode: time 2.555e-06/0.7377, allocations: 0 / 0.5868 GB, free: 89.13 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.016/1.753, allocations: 45.56 MB / 0.6313 GB, free: 43.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.56/22.32, allocations: 0 / 0.6313 GB, free: 43.89 MB / 462.1 MB " [Timeout remaining time 638] (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.974161777179688]