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.001406/0.001406, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001572/0.001572, allocations: 216.2 kB / 24.53 MB, free: 4.066 MB / 14.72 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 1.385/1.385, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 47.92 kB / 378.6 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2448, allocations: 53.35 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008757/0.2536, allocations: 7.158 MB / 439.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00601/0.2596, allocations: 3.212 MB / 442.3 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006718/0.2603, allocations: 35.88 kB / 442.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001582/0.2619, allocations: 0.8093 MB / 443.1 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002552/0.2644, allocations: 1.319 MB / 444.5 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009258/0.2653, allocations: 495 kB / 444.9 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003074/0.2684, allocations: 2.567 MB / 447.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001351/0.2698, allocations: 1.084 MB / 448.6 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009864/0.2707, allocations: 0.7589 MB / 449.3 MB, free: 5.355 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.2723, allocations: 1.215 MB / 450.6 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002479/0.2725, allocations: 136 kB / 450.7 MB, free: 4.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001453/0.274, allocations: 0.8969 MB / 451.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009221/0.2749, allocations: 1.005 MB / 452.6 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001086/0.276, allocations: 1.188 MB / 453.8 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00441/0.2804, allocations: 3.944 MB / 457.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2804, allocations: 0 / 457.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2804, allocations: 0 / 457.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.514e-05/0.2804, allocations: 0 / 457.7 MB, free: 12.94 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.005696/0.2861, allocations: 2.873 MB / 460.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.2862, allocations: 8.031 kB / 460.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 9.285e-05/0.2863, allocations: 59.16 kB / 460.7 MB, free: 9.957 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005992/0.2869, allocations: 450 kB / 461.1 MB, free: 9.508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005998/0.2929, allocations: 1.668 MB / 462.8 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002824/0.2957, allocations: 1.485 MB / 464.3 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001076/0.2958, allocations: 122.8 kB / 464.4 MB, free: 6.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002985/0.2961, allocations: 155.9 kB / 464.5 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008527/0.3046, allocations: 6.359 MB / 470.9 MB, free: 15.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.511e-05/0.3047, allocations: 39.69 kB / 470.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002147/0.3049, allocations: 79.89 kB / 471 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002384/0.3073, allocations: 1.437 MB / 472.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009059/0.3164, allocations: 5.669 MB / 478.1 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02898/0.3453, allocations: 26.13 MB / 0.4924 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00408/0.3494, allocations: 1.738 MB / 0.4941 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00133/0.3508, allocations: 0.9443 MB / 0.495 GB, free: 10.24 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.783e-05/0.3508, allocations: 11.98 kB / 0.4951 GB, free: 10.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.3508, allocations: 46.72 kB / 0.4951 GB, free: 10.17 MB / 414.1 MB Notification: Performance of pre-optimization done (n=98): time 3.316e-06/0.3508, allocations: 3.938 kB / 0.4951 GB, free: 10.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=106): time 0.02122/0.3721, allocations: 8.49 MB / 0.5034 GB, free: 1.605 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.965e-05/0.3722, allocations: 144.5 kB / 0.5035 GB, free: 1.434 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003755/0.3759, allocations: 2.824 MB / 0.5063 GB, free: 14.59 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.3761, allocations: 41.7 kB / 0.5063 GB, free: 14.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.3776, allocations: 2.159 MB / 0.5084 GB, free: 12.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004501/0.3781, allocations: 456.6 kB / 0.5089 GB, free: 11.92 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.3791, allocations: 0.8854 MB / 0.5097 GB, free: 11.02 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3793, allocations: 305.1 kB / 0.51 GB, free: 10.72 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002042/0.3813, allocations: 1.41 MB / 0.5114 GB, free: 9.301 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004275/0.3856, allocations: 4.23 MB / 0.5155 GB, free: 3.641 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007096/0.3927, allocations: 6.12 MB / 0.5215 GB, free: 12.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-05/0.3927, allocations: 32 kB / 0.5215 GB, free: 12.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01082/0.4036, allocations: 6.088 MB / 0.5275 GB, free: 5.984 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.98e-05/0.4036, allocations: 51.94 kB / 0.5275 GB, free: 5.934 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001393/0.4038, allocations: 104.1 kB / 0.5276 GB, free: 5.832 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002286/0.4061, allocations: 0.8044 MB / 0.5284 GB, free: 5.027 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002845/0.4089, allocations: 0.9825 MB / 0.5294 GB, free: 4.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005961/0.4149, allocations: 4.361 MB / 0.5336 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/0.4176, allocations: 255.5 kB / 0.5339 GB, free: 15.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000511/0.4181, allocations: 280 kB / 0.5342 GB, free: 15.04 MB / 462.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.002098/0.4202, allocations: 1.368 MB / 0.5355 GB, free: 13.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004567/0.4206, allocations: 242.4 kB / 0.5357 GB, free: 13.42 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.4246, allocations: 1.845 MB / 0.5375 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.4247, allocations: 16 kB / 0.5375 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4247, allocations: 4 kB / 0.5375 GB, free: 11.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.788e-05/0.4247, allocations: 3.984 kB / 0.5375 GB, free: 11.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008824/0.4336, allocations: 4.75 MB / 0.5422 GB, free: 6.703 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.669e-06/0.4336, allocations: 4 kB / 0.5422 GB, free: 6.699 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006271/0.4342, allocations: 131.8 kB / 0.5423 GB, free: 6.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/0.4363, allocations: 0.6444 MB / 0.5429 GB, free: 5.922 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.44e-05/0.4363, allocations: 20 kB / 0.543 GB, free: 5.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005273/0.4416, allocations: 3.853 MB / 0.5467 GB, free: 1.934 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/0.4416, allocations: 4.031 kB / 0.5467 GB, free: 1.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1768/0.6184, allocations: 3.688 MB / 0.5503 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000535/0.6189, allocations: 231.2 kB / 0.5506 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/0.6191, allocations: 16.92 kB / 0.5506 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008147/0.62, allocations: 66.58 kB / 0.5506 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001574/0.6201, allocations: 57.64 kB / 0.5507 GB, free: 114.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.6202, allocations: 29.7 kB / 0.5507 GB, free: 114.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002162/0.6224, allocations: 1.753 MB / 0.5524 GB, free: 114.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6224, allocations: 3.969 kB / 0.5524 GB, free: 114.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002543/0.6249, allocations: 0.6239 MB / 0.553 GB, free: 114.1 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.004839/0.6297, allocations: 4.327 MB / 0.5573 GB, free: 112.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003871/0.6336, allocations: 3.287 MB / 0.5605 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.6336, allocations: 0 / 0.5605 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008647/0.6345, allocations: 0.8643 MB / 0.5613 GB, free: 110.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.6359, allocations: 258.2 kB / 0.5616 GB, free: 110.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02747/0.6634, allocations: 30.24 MB / 0.5911 GB, free: 79.97 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001345/0.6647, allocations: 2.185 MB / 0.5932 GB, free: 77.76 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002146/0.6668, allocations: 1.392 MB / 0.5946 GB, free: 76.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009072/0.6678, allocations: 1.054 MB / 0.5956 GB, free: 75.31 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6678, allocations: 4 kB / 0.5956 GB, free: 75.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7681/1.436, allocations: 45.51 MB / 0.6401 GB, free: 30.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.91/20.35, allocations: 0 / 0.6401 GB, free: 30.12 MB / 462.1 MB " [Timeout remaining time 639] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/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: 23.244953564018942]