Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001314/0.001314, allocations: 118.6 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 214.6 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 230.2 MB / 254.5 MB, free: 15.41 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001982/0.001982, allocations: 63.89 kB / 373.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.12, allocations: 53.32 MB / 426.7 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009606/0.1296, allocations: 7.13 MB / 433.8 MB, free: 13.92 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007687/0.1373, allocations: 3.185 MB / 437 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.1386, allocations: 31.94 kB / 437 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001801/0.1404, allocations: 0.8093 MB / 437.8 MB, free: 9.883 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002898/0.1433, allocations: 1.315 MB / 439.1 MB, free: 8.562 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009959/0.1442, allocations: 495 kB / 439.6 MB, free: 8.078 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003118/0.1474, allocations: 2.562 MB / 442.2 MB, free: 5.512 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001236/0.1486, allocations: 1.013 MB / 443.2 MB, free: 4.477 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.1496, allocations: 0.7589 MB / 444 MB, free: 3.715 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001404/0.151, allocations: 1.203 MB / 445.2 MB, free: 2.508 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000237/0.1513, allocations: 140 kB / 445.3 MB, free: 2.371 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001464/0.1527, allocations: 0.8969 MB / 446.2 MB, free: 1.473 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009273/0.1537, allocations: 1.009 MB / 447.2 MB, free: 472 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.206/0.3597, allocations: 1.177 MB / 448.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00405/0.3638, allocations: 3.942 MB / 452.3 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3638, allocations: 0 / 452.3 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3638, allocations: 1.125 kB / 452.3 MB, free: 10 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.439e-05/0.3638, allocations: 0 / 452.3 MB, free: 10 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.005551/0.3694, allocations: 2.95 MB / 455.3 MB, free: 8.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3694, allocations: 10.81 kB / 455.3 MB, free: 8.66 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005595/0.37, allocations: 450.8 kB / 455.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005921/0.3759, allocations: 1.669 MB / 457.4 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004698/0.3806, allocations: 1.531 MB / 458.9 MB, free: 8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001163/0.3807, allocations: 124.2 kB / 459 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004758/0.3812, allocations: 151.7 kB / 459.2 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.3923, allocations: 6.363 MB / 465.6 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.658e-05/0.3923, allocations: 34.84 kB / 465.6 MB, free: 5.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000232/0.3926, allocations: 86.36 kB / 465.7 MB, free: 5.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002499/0.3951, allocations: 1.428 MB / 467.1 MB, free: 5.414 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01126/0.4063, allocations: 5.674 MB / 472.8 MB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03016/0.4365, allocations: 26.24 MB / 499 MB, free: 14.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004085/0.4406, allocations: 2.187 MB / 0.4895 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001264/0.4418, allocations: 0.9384 MB / 0.4904 GB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.738e-05/0.4419, allocations: 17.45 kB / 0.4904 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.617e-05/0.4419, allocations: 45.52 kB / 0.4904 GB, free: 12.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.619e-06/0.4419, allocations: 0 / 0.4904 GB, free: 12.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02155/0.4635, allocations: 8.71 MB / 0.4989 GB, free: 4.074 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.189e-05/0.4636, allocations: 148.3 kB / 0.4991 GB, free: 3.902 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003829/0.4674, allocations: 2.828 MB / 0.5018 GB, free: 1.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001429/0.4676, allocations: 37.7 kB / 0.5019 GB, free: 1.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.4691, allocations: 2.163 MB / 0.504 GB, free: 14.87 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004379/0.4695, allocations: 451.7 kB / 0.5044 GB, free: 14.43 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001078/0.4706, allocations: 0.8854 MB / 0.5053 GB, free: 13.53 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.4707, allocations: 301.1 kB / 0.5056 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002018/0.4727, allocations: 1.406 MB / 0.507 GB, free: 11.82 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004089/0.4768, allocations: 4.245 MB / 0.5111 GB, free: 6.199 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006857/0.4837, allocations: 6.115 MB / 0.5171 GB, free: 15.08 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.555e-05/0.4837, allocations: 31.47 kB / 0.5171 GB, free: 15.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01109/0.4948, allocations: 6.093 MB / 0.523 GB, free: 8.957 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.663e-05/0.4949, allocations: 50.19 kB / 0.5231 GB, free: 8.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.495, allocations: 100 kB / 0.5232 GB, free: 8.812 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002261/0.4973, allocations: 0.8047 MB / 0.524 GB, free: 8.004 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/0.5003, allocations: 0.9786 MB / 0.5249 GB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006048/0.5064, allocations: 4.482 MB / 0.5293 GB, free: 2.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003253/0.5096, allocations: 243.6 kB / 0.5295 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006391/0.5102, allocations: 272 kB / 0.5298 GB, free: 1.918 MB / 430.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.00237/0.5126, allocations: 1.373 MB / 0.5311 GB, free: 0.5352 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000465/0.5131, allocations: 242.4 kB / 0.5314 GB, free: 304 kB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003799/0.5169, allocations: 1.841 MB / 0.5332 GB, free: 14.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.277e-05/0.5169, allocations: 15.39 kB / 0.5332 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.5169, allocations: 7.938 kB / 0.5332 GB, free: 14.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.5169, allocations: 11.98 kB / 0.5332 GB, free: 14.43 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009295/0.5262, allocations: 4.782 MB / 0.5379 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5262, allocations: 0 / 0.5379 GB, free: 9.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/0.5268, allocations: 135.7 kB / 0.538 GB, free: 9.453 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00189/0.5287, allocations: 0.6483 MB / 0.5386 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.792e-05/0.5288, allocations: 25.86 kB / 0.5387 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004961/0.5337, allocations: 3.95 MB / 0.5425 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/0.5337, allocations: 9.531 kB / 0.5425 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005755/0.5395, allocations: 3.691 MB / 0.5461 GB, free: 0.957 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006733/0.5402, allocations: 295.4 kB / 0.5464 GB, free: 0.6484 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002415/0.5404, allocations: 23.94 kB / 0.5464 GB, free: 0.6289 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007832/0.5412, allocations: 63.84 kB / 0.5465 GB, free: 0.5664 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.5413, allocations: 55.86 kB / 0.5466 GB, free: 0.5117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.513e-05/0.5414, allocations: 28 kB / 0.5466 GB, free: 496 kB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00273/0.5441, allocations: 1.759 MB / 0.5483 GB, free: 14.72 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.5441, allocations: 0 / 0.5483 GB, free: 14.72 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004328/0.5485, allocations: 0.6311 MB / 0.5489 GB, free: 14.09 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.006793/0.5553, allocations: 4.319 MB / 0.5531 GB, free: 9.738 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005819/0.5611, allocations: 3.284 MB / 0.5563 GB, free: 6.465 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.179e-06/0.5611, allocations: 0 / 0.5563 GB, free: 6.465 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001274/0.5624, allocations: 0.8742 MB / 0.5572 GB, free: 5.578 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/0.5644, allocations: 258.7 kB / 0.5574 GB, free: 5.332 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04843/0.6129, allocations: 30.18 MB / 0.5869 GB, free: 3.332 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/0.6155, allocations: 2.184 MB / 0.589 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003099/0.6186, allocations: 1.4 MB / 0.5904 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001561/0.6202, allocations: 1.046 MB / 0.5914 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of SimCode: time 1.002e-06/0.6202, allocations: 0 / 0.5914 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.046/2.666, allocations: 41.91 MB / 0.6324 GB, free: 5.004 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.59/26.25, allocations: 6.859 kB / 0.6324 GB, free: 5 MB / 0.5294 GB " [Timeout remaining time 633] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 31.03503822721541]