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.001259/0.001259, allocations: 109.5 kB / 17.05 MB, free: 6.078 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.001308/0.001308, allocations: 199 kB / 17.99 MB, free: 5.172 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.337/1.337, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 51.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2583, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008324/0.2667, allocations: 7.095 MB / 407.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005832/0.2725, allocations: 3.154 MB / 410.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.2736, allocations: 35.94 kB / 410.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00188/0.2756, allocations: 0.782 MB / 411.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003218/0.2788, allocations: 1.321 MB / 412.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.2799, allocations: 495 kB / 413.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003225/0.2832, allocations: 2.535 MB / 415.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001652/0.2848, allocations: 1.165 MB / 416.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001193/0.2861, allocations: 0.7588 MB / 417.6 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001611/0.2877, allocations: 1.106 MB / 418.7 MB, free: 6.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000444/0.2881, allocations: 136 kB / 418.8 MB, free: 6.188 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001649/0.2898, allocations: 0.8775 MB / 419.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.2909, allocations: 0.9972 MB / 420.7 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001556/0.2924, allocations: 1.203 MB / 421.9 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004216/0.2966, allocations: 3.968 MB / 425.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2967, allocations: 0 / 425.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2967, allocations: 0 / 425.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001229/0.2968, allocations: 0 / 425.8 MB, free: 15.12 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.005747/0.3026, allocations: 2.898 MB / 428.7 MB, free: 12.16 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.3026, allocations: 8.031 kB / 428.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005591/0.3032, allocations: 454 kB / 429.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0063/0.3095, allocations: 1.658 MB / 430.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003314/0.3128, allocations: 1.632 MB / 432.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.397e-05/0.3129, allocations: 118.9 kB / 432.6 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003026/0.3132, allocations: 155.8 kB / 432.8 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008527/0.3218, allocations: 6.363 MB / 439.1 MB, free: 1.203 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.082e-05/0.3219, allocations: 31.66 kB / 439.2 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000244/0.3221, allocations: 83.89 kB / 439.2 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002321/0.3244, allocations: 1.429 MB / 440.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009216/0.3337, allocations: 5.677 MB / 446.3 MB, free: 9.973 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02732/0.361, allocations: 26.2 MB / 472.5 MB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004057/0.3651, allocations: 2.269 MB / 474.8 MB, free: 12.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.3664, allocations: 1.031 MB / 475.8 MB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.473e-05/0.3665, allocations: 7.984 kB / 475.8 MB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/0.3665, allocations: 42.56 kB / 475.9 MB, free: 11.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 4.128e-06/0.3665, allocations: 3.938 kB / 475.9 MB, free: 11.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02076/0.3873, allocations: 8.587 MB / 484.5 MB, free: 2.691 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.535e-05/0.3874, allocations: 144.5 kB / 484.6 MB, free: 2.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003604/0.391, allocations: 2.824 MB / 487.4 MB, free: 15.68 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.948e-05/0.3911, allocations: 37.7 kB / 487.5 MB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.3924, allocations: 2.075 MB / 489.6 MB, free: 13.53 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003914/0.3928, allocations: 438.6 kB / 490 MB, free: 13.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001067/0.3938, allocations: 0.8768 MB / 490.9 MB, free: 12.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.833e-05/0.3939, allocations: 309.1 kB / 491.2 MB, free: 11.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001999/0.3959, allocations: 1.41 MB / 492.6 MB, free: 10.48 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003505/0.3995, allocations: 4.238 MB / 496.8 MB, free: 4.816 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005685/0.4051, allocations: 6.121 MB / 0.4911 GB, free: 13.29 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.453e-05/0.4052, allocations: 36 kB / 0.4912 GB, free: 13.25 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009361/0.4146, allocations: 6.082 MB / 0.4971 GB, free: 7.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.474e-05/0.4147, allocations: 48 kB / 0.4972 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000108/0.4148, allocations: 103.9 kB / 0.4973 GB, free: 7.012 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002141/0.4169, allocations: 0.7972 MB / 0.498 GB, free: 6.211 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002542/0.4195, allocations: 0.9825 MB / 0.499 GB, free: 5.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005195/0.4247, allocations: 4.476 MB / 0.5034 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002296/0.427, allocations: 239.6 kB / 0.5036 GB, free: 384 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.4273, allocations: 276 kB / 0.5039 GB, free: 108 kB / 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.001517/0.4288, allocations: 1.368 MB / 0.5052 GB, free: 14.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/0.4292, allocations: 229 kB / 0.5054 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003507/0.4327, allocations: 1.857 MB / 0.5072 GB, free: 12.62 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-05/0.4327, allocations: 19.84 kB / 0.5072 GB, free: 12.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/0.4327, allocations: 8 kB / 0.5073 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.4328, allocations: 3.984 kB / 0.5073 GB, free: 12.59 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008035/0.4408, allocations: 4.782 MB / 0.5119 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4408, allocations: 0 / 0.5119 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005832/0.4414, allocations: 143.8 kB / 0.5121 GB, free: 7.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.4434, allocations: 0.6487 MB / 0.5127 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.168e-05/0.4434, allocations: 16 kB / 0.5127 GB, free: 6.922 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004427/0.4479, allocations: 3.948 MB / 0.5166 GB, free: 2.832 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4479, allocations: 4.031 kB / 0.5166 GB, free: 2.828 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005179/0.4531, allocations: 3.689 MB / 0.5202 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003992/0.4535, allocations: 289.9 kB / 0.5205 GB, free: 14.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002232/0.4537, allocations: 19.94 kB / 0.5205 GB, free: 14.79 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000834/0.4546, allocations: 59.91 kB / 0.5205 GB, free: 14.73 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.4547, allocations: 55.92 kB / 0.5206 GB, free: 14.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.165e-05/0.4548, allocations: 32.05 kB / 0.5206 GB, free: 14.64 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002083/0.4569, allocations: 1.762 MB / 0.5223 GB, free: 12.87 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4569, allocations: 0 / 0.5223 GB, free: 12.87 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00252/0.4594, allocations: 0.6406 MB / 0.523 GB, free: 12.23 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.005586/0.465, allocations: 4.314 MB / 0.5272 GB, free: 7.875 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004244/0.4693, allocations: 3.427 MB / 0.5305 GB, free: 4.461 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4693, allocations: 192 / 0.5305 GB, free: 4.461 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.4704, allocations: 0.9276 MB / 0.5314 GB, free: 3.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00131/0.4717, allocations: 265 kB / 0.5317 GB, free: 3.262 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1886/0.6603, allocations: 30.11 MB / 0.5611 GB, free: 112.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001403/0.6617, allocations: 2.177 MB / 0.5632 GB, free: 110.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002268/0.664, allocations: 1.404 MB / 0.5646 GB, free: 108.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008975/0.6649, allocations: 1.046 MB / 0.5656 GB, free: 107.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.11e-07/0.6649, allocations: 0 / 0.5656 GB, free: 107.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.8/3.465, allocations: 42.44 MB / 0.607 GB, free: 65.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.03/22.49, allocations: 11.73 kB / 0.6071 GB, free: 65.68 MB / 462.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