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.001423/0.001423, allocations: 125 kB / 17.79 MB, free: 5.121 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.001488/0.001488, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.453/1.453, allocations: 225.6 MB / 249.1 MB, free: 3.613 MB / 190.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.001474/0.001474, allocations: 51.92 kB / 365.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1018, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008774/0.1106, allocations: 7.148 MB / 424.9 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005677/0.1163, allocations: 3.17 MB / 428.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006879/0.1169, allocations: 35.94 kB / 428.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001715/0.1187, allocations: 0.8054 MB / 428.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002879/0.1215, allocations: 1.338 MB / 430.3 MB, free: 56 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001013/0.1226, allocations: 0.4951 MB / 430.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.1257, allocations: 2.52 MB / 433.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.127, allocations: 1.028 MB / 434.3 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009773/0.128, allocations: 0.7589 MB / 435.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001712/0.1297, allocations: 1.215 MB / 436.3 MB, free: 10 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002565/0.13, allocations: 136 kB / 436.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.1315, allocations: 0.9164 MB / 437.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009073/0.1324, allocations: 1.024 MB / 438.4 MB, free: 7.922 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.1335, allocations: 1.195 MB / 439.6 MB, free: 6.719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004573/0.138, allocations: 3.991 MB / 443.6 MB, free: 2.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.138, allocations: 0 / 443.6 MB, free: 2.711 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.138, allocations: 0 / 443.6 MB, free: 2.711 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.828e-05/0.1381, allocations: 0 / 443.6 MB, free: 2.711 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.1817/0.3198, allocations: 2.969 MB / 446.5 MB, free: 28.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.152e-05/0.3198, allocations: 9.719 kB / 446.5 MB, free: 28.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006263/0.3205, allocations: 449.9 kB / 447 MB, free: 28.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005351/0.3258, allocations: 1.669 MB / 448.6 MB, free: 28.62 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003138/0.329, allocations: 1.635 MB / 450.3 MB, free: 28.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.3291, allocations: 119.6 kB / 450.4 MB, free: 28.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002982/0.3294, allocations: 156.1 kB / 450.5 MB, free: 28.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008044/0.3374, allocations: 6.365 MB / 456.9 MB, free: 26.01 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.087e-05/0.3375, allocations: 37.81 kB / 457 MB, free: 25.99 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002077/0.3377, allocations: 79.31 kB / 457 MB, free: 25.96 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002303/0.34, allocations: 1.436 MB / 458.5 MB, free: 25.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009109/0.3491, allocations: 5.673 MB / 464.1 MB, free: 24.04 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02243/0.3715, allocations: 26.25 MB / 490.4 MB, free: 2.242 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003324/0.3748, allocations: 2.19 MB / 492.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001342/0.3762, allocations: 0.9487 MB / 493.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.57e-05/0.3762, allocations: 13.77 kB / 493.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.957e-05/0.3763, allocations: 46.5 kB / 493.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 3.377e-06/0.3763, allocations: 224 / 493.6 MB, free: 14.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=106): time 0.02041/0.3967, allocations: 8.706 MB / 0.4905 GB, free: 6.086 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.3968, allocations: 152.5 kB / 0.4907 GB, free: 5.906 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003862/0.4007, allocations: 2.832 MB / 0.4934 GB, free: 3.055 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001076/0.4008, allocations: 33.7 kB / 0.4935 GB, free: 3.016 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001739/0.4025, allocations: 2.159 MB / 0.4956 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004664/0.403, allocations: 460.7 kB / 0.496 GB, free: 392 kB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001145/0.4041, allocations: 0.8854 MB / 0.4969 GB, free: 15.48 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.4043, allocations: 305.1 kB / 0.4972 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002159/0.4064, allocations: 1.415 MB / 0.4985 GB, free: 13.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004609/0.411, allocations: 4.234 MB / 0.5027 GB, free: 8.094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007437/0.4185, allocations: 6.125 MB / 0.5087 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.125e-05/0.4185, allocations: 28 kB / 0.5087 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01145/0.43, allocations: 6.087 MB / 0.5146 GB, free: 10.44 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.431e-05/0.4301, allocations: 55.98 kB / 0.5147 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/0.4302, allocations: 103.9 kB / 0.5148 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00225/0.4325, allocations: 0.7861 MB / 0.5156 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002952/0.4354, allocations: 0.9903 MB / 0.5165 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006277/0.4417, allocations: 4.482 MB / 0.5209 GB, free: 3.898 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002842/0.4446, allocations: 247.6 kB / 0.5211 GB, free: 3.656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005929/0.4451, allocations: 280 kB / 0.5214 GB, free: 3.383 MB / 414.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.002328/0.4475, allocations: 1.373 MB / 0.5227 GB, free: 2 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004936/0.448, allocations: 242.4 kB / 0.523 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/0.4519, allocations: 1.838 MB / 0.5248 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/0.4519, allocations: 16.94 kB / 0.5248 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.4519, allocations: 4 kB / 0.5248 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.452, allocations: 3.984 kB / 0.5248 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009786/0.4617, allocations: 4.798 MB / 0.5295 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.778e-06/0.4618, allocations: 3.938 kB / 0.5295 GB, free: 11 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006558/0.4624, allocations: 132.8 kB / 0.5296 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002003/0.4644, allocations: 0.6444 MB / 0.5302 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.363e-05/0.4645, allocations: 23.98 kB / 0.5303 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00544/0.4699, allocations: 3.952 MB / 0.5341 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.4699, allocations: 3.938 kB / 0.5341 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006157/0.4761, allocations: 3.687 MB / 0.5377 GB, free: 2.387 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007449/0.4768, allocations: 300.8 kB / 0.538 GB, free: 2.074 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004403/0.4773, allocations: 23.98 kB / 0.538 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.4783, allocations: 63.91 kB / 0.5381 GB, free: 1.988 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.4785, allocations: 59.86 kB / 0.5381 GB, free: 1.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.457e-05/0.4786, allocations: 32 kB / 0.5382 GB, free: 1.898 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003169/0.4818, allocations: 1.758 MB / 0.5399 GB, free: 136 kB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4818, allocations: 0 / 0.5399 GB, free: 136 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.003373/0.4851, allocations: 0.6483 MB / 0.5405 GB, free: 15.48 MB / 446.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.006712/0.4918, allocations: 4.31 MB / 0.5447 GB, free: 11.14 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005689/0.4975, allocations: 3.288 MB / 0.5479 GB, free: 7.859 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.4975, allocations: 8 kB / 0.548 GB, free: 7.852 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001311/0.4988, allocations: 0.8662 MB / 0.5488 GB, free: 6.973 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.5008, allocations: 259.9 kB / 0.5491 GB, free: 6.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04775/0.5485, allocations: 30.21 MB / 0.5786 GB, free: 4.676 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002345/0.5509, allocations: 2.181 MB / 0.5807 GB, free: 2.469 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002916/0.5538, allocations: 1.403 MB / 0.5821 GB, free: 1.059 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001433/0.5552, allocations: 1.054 MB / 0.5831 GB, free: 4 kB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/0.5552, allocations: 0 / 0.5831 GB, free: 4 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9786/1.534, allocations: 41.97 MB / 0.6241 GB, free: 6.277 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.42/20.95, allocations: 15.48 kB / 0.6241 GB, free: 6.266 MB / 0.5137 GB " [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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 25.387794650159776]