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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 106.6 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.252/1.252, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009361/0.0009361, allocations: 47.52 kB / 300.7 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.08131, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00778/0.08912, allocations: 7.099 MB / 357.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005384/0.09454, allocations: 3.161 MB / 360.4 MB, free: 9.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009494/0.09552, allocations: 31.94 kB / 360.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.09744, allocations: 0.7859 MB / 361.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003063/0.1005, allocations: 1.321 MB / 362.6 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001166/0.1017, allocations: 0.495 MB / 363.1 MB, free: 7.352 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002867/0.1046, allocations: 2.519 MB / 365.6 MB, free: 4.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001556/0.1062, allocations: 1.161 MB / 366.7 MB, free: 3.656 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001142/0.1073, allocations: 0.7549 MB / 367.5 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001505/0.1088, allocations: 1.106 MB / 368.6 MB, free: 1.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004384/0.1093, allocations: 132 kB / 368.7 MB, free: 1.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.111, allocations: 0.8892 MB / 369.6 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.141/0.252, allocations: 0.991 MB / 370.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001836/0.2539, allocations: 1.194 MB / 371.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004792/0.2587, allocations: 3.799 MB / 375.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.2588, allocations: 1.344 kB / 375.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2588, allocations: 0 / 375.6 MB, free: 11.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.246e-05/0.2589, allocations: 2.625 kB / 375.6 MB, free: 11.13 MB / 302.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.005214/0.2641, allocations: 2.892 MB / 378.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.2641, allocations: 11.34 kB / 378.5 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005141/0.2647, allocations: 454.8 kB / 379 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00581/0.2705, allocations: 1.649 MB / 380.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.2735, allocations: 1.608 MB / 382.2 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.117e-05/0.2736, allocations: 125.3 kB / 382.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003313/0.274, allocations: 159.1 kB / 382.5 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007705/0.2817, allocations: 6.36 MB / 388.9 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.177e-05/0.2818, allocations: 33.5 kB / 388.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002257/0.282, allocations: 85.19 kB / 389 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002094/0.2841, allocations: 1.435 MB / 390.4 MB, free: 6.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008556/0.2927, allocations: 5.67 MB / 396.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0243/0.317, allocations: 26.3 MB / 422.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004067/0.3211, allocations: 2.267 MB / 424.6 MB, free: 7.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.3223, allocations: 1.022 MB / 425.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.551e-05/0.3224, allocations: 7.125 kB / 425.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.1e-05/0.3225, allocations: 49 kB / 425.7 MB, free: 6.742 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.527e-06/0.3225, allocations: 0 / 425.7 MB, free: 6.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=106): time 0.02114/0.3436, allocations: 8.58 MB / 434.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.3437, allocations: 143.3 kB / 434.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004719/0.3484, allocations: 2.831 MB / 437.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001695/0.3486, allocations: 37.7 kB / 437.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.35, allocations: 2.072 MB / 439.4 MB, free: 8.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000488/0.3505, allocations: 438.6 kB / 439.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001377/0.3519, allocations: 0.8751 MB / 440.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.919e-05/0.352, allocations: 301.1 kB / 441 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/0.3542, allocations: 1.413 MB / 442.4 MB, free: 5.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003669/0.3578, allocations: 4.239 MB / 446.6 MB, free: 288 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006139/0.364, allocations: 6.123 MB / 452.7 MB, free: 9.148 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.126e-05/0.3641, allocations: 32 kB / 452.8 MB, free: 9.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01027/0.3744, allocations: 6.083 MB / 458.9 MB, free: 3.023 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.871e-05/0.3745, allocations: 48 kB / 458.9 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/0.3746, allocations: 104.1 kB / 459 MB, free: 2.875 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002187/0.3768, allocations: 0.7967 MB / 459.8 MB, free: 2.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002705/0.3795, allocations: 0.9825 MB / 460.8 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0051/0.3846, allocations: 4.468 MB / 465.3 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002935/0.3876, allocations: 247.6 kB / 465.5 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005826/0.3882, allocations: 276 kB / 465.8 MB, free: 11.98 MB / 382.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.002281/0.3905, allocations: 1.378 MB / 467.1 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004545/0.391, allocations: 229 kB / 467.4 MB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003749/0.3947, allocations: 1.857 MB / 469.2 MB, free: 8.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.251e-05/0.3948, allocations: 12 kB / 469.2 MB, free: 8.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.508e-06/0.3948, allocations: 4 kB / 469.2 MB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.637e-05/0.3948, allocations: 7.922 kB / 469.3 MB, free: 8.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008846/0.4036, allocations: 4.808 MB / 474.1 MB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.796e-06/0.4037, allocations: 0 / 474.1 MB, free: 3.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/0.4043, allocations: 135.8 kB / 474.2 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/0.4062, allocations: 0.6522 MB / 474.8 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.095e-05/0.4063, allocations: 20 kB / 474.9 MB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004477/0.4108, allocations: 3.946 MB / 478.8 MB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.4108, allocations: 4.031 kB / 478.8 MB, free: 14.7 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005191/0.416, allocations: 3.68 MB / 482.5 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005964/0.4166, allocations: 297.9 kB / 482.8 MB, free: 10.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000454/0.4171, allocations: 27.11 kB / 482.8 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001076/0.4182, allocations: 63.86 kB / 482.9 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/0.4183, allocations: 55.86 kB / 482.9 MB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.492e-05/0.4184, allocations: 31.98 kB / 483 MB, free: 10.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002838/0.4213, allocations: 1.758 MB / 484.7 MB, free: 8.746 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4213, allocations: 288 / 484.7 MB, free: 8.746 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003315/0.4246, allocations: 0.6484 MB / 485.4 MB, free: 8.098 MB / 398.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.005549/0.4302, allocations: 4.313 MB / 489.7 MB, free: 3.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005071/0.4352, allocations: 3.613 MB / 493.3 MB, free: 140 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4353, allocations: 3.938 kB / 493.3 MB, free: 136 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.4364, allocations: 0.9363 MB / 494.2 MB, free: 15.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.4379, allocations: 257.4 kB / 494.5 MB, free: 14.93 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03941/0.4773, allocations: 32.39 MB / 0.5145 GB, free: 9.574 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002154/0.4795, allocations: 2.188 MB / 0.5167 GB, free: 7.352 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00289/0.4824, allocations: 1.4 MB / 0.518 GB, free: 5.945 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.4836, allocations: 1.046 MB / 0.5191 GB, free: 4.898 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4836, allocations: 3.938 kB / 0.5191 GB, free: 4.895 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6906/1.174, allocations: 44.49 MB / 0.5625 GB, free: 131.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/13.7, allocations: 16.19 kB / 0.5625 GB, free: 131.9 MB / 446.1 MB (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 --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) 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) Reference file matches