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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001532/0.001532, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.00191, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 55.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2614, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008515/0.27, allocations: 7.089 MB / 415.9 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006421/0.2764, allocations: 3.158 MB / 419 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001044/0.2775, allocations: 31.94 kB / 419 MB, free: 7.211 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.2794, allocations: 0.7859 MB / 419.8 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003044/0.2825, allocations: 1.319 MB / 421.1 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.2836, allocations: 0.4912 MB / 421.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003309/0.2869, allocations: 2.563 MB / 424.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.2884, allocations: 1.149 MB / 425.3 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001033/0.2895, allocations: 0.755 MB / 426.1 MB, free: 112 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.2908, allocations: 1.098 MB / 427.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003208/0.2912, allocations: 132 kB / 427.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001459/0.2926, allocations: 0.8658 MB / 428.2 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000911/0.2936, allocations: 0.9855 MB / 429.2 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001095/0.2947, allocations: 1.18 MB / 430.4 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004561/0.2993, allocations: 3.939 MB / 434.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2993, allocations: 0 / 434.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.2993, allocations: 0 / 434.3 MB, free: 7.871 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001018/0.2994, allocations: 3.938 kB / 434.3 MB, free: 7.867 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.005799/0.3052, allocations: 2.956 MB / 437.3 MB, free: 4.848 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3053, allocations: 12.03 kB / 437.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005224/0.3058, allocations: 450 kB / 437.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006038/0.3119, allocations: 1.664 MB / 439.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003084/0.315, allocations: 1.539 MB / 440.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.491e-05/0.3151, allocations: 122.9 kB / 441 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003757/0.3155, allocations: 151.9 kB / 441.2 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008733/0.3242, allocations: 6.363 MB / 447.5 MB, free: 9.977 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.116e-05/0.3243, allocations: 31.7 kB / 447.6 MB, free: 9.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002488/0.3246, allocations: 79.89 kB / 447.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002424/0.327, allocations: 1.441 MB / 449.1 MB, free: 8.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009403/0.3364, allocations: 5.662 MB / 454.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02998/0.3665, allocations: 26.25 MB / 481 MB, free: 7.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004377/0.3709, allocations: 2.258 MB / 483.3 MB, free: 5.273 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00135/0.3723, allocations: 1.03 MB / 484.3 MB, free: 4.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.802e-05/0.3724, allocations: 15.97 kB / 484.3 MB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.3724, allocations: 38.56 kB / 484.4 MB, free: 4.168 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.526e-06/0.3724, allocations: 0 / 484.4 MB, free: 4.168 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02165/0.3941, allocations: 8.723 MB / 493.1 MB, free: 11.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.3942, allocations: 144.5 kB / 493.2 MB, free: 11.14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0038/0.398, allocations: 2.828 MB / 496 MB, free: 8.301 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001819/0.3982, allocations: 37.7 kB / 496.1 MB, free: 8.258 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.3996, allocations: 2.155 MB / 498.2 MB, free: 6.082 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004396/0.4001, allocations: 456.7 kB / 498.7 MB, free: 5.633 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009865/0.4011, allocations: 0.8815 MB / 499.6 MB, free: 4.738 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4012, allocations: 301.1 kB / 499.9 MB, free: 4.441 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.4032, allocations: 1.414 MB / 0.4895 GB, free: 3.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003702/0.4069, allocations: 4.234 MB / 0.4937 GB, free: 13.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006539/0.4135, allocations: 6.125 MB / 0.4996 GB, free: 5.816 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-05/0.4136, allocations: 28 kB / 0.4997 GB, free: 5.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01139/0.425, allocations: 6.1 MB / 0.5056 GB, free: 15.68 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001441/0.4252, allocations: 48 kB / 0.5057 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/0.4254, allocations: 107.9 kB / 0.5058 GB, free: 15.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002428/0.4278, allocations: 0.7933 MB / 0.5065 GB, free: 14.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003262/0.4311, allocations: 0.9941 MB / 0.5075 GB, free: 13.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005961/0.4371, allocations: 4.468 MB / 0.5119 GB, free: 9.129 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003322/0.4404, allocations: 243.6 kB / 0.5121 GB, free: 8.891 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007935/0.4413, allocations: 288 kB / 0.5124 GB, free: 8.609 MB / 446.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.002603/0.4439, allocations: 1.371 MB / 0.5137 GB, free: 7.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005666/0.4445, allocations: 242.4 kB / 0.514 GB, free: 6.992 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003953/0.4484, allocations: 1.845 MB / 0.5158 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.789e-05/0.4485, allocations: 23.94 kB / 0.5158 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/0.4485, allocations: 4.375 kB / 0.5158 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.61e-05/0.4486, allocations: 7.969 kB / 0.5158 GB, free: 5.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009966/0.4585, allocations: 4.783 MB / 0.5205 GB, free: 232 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.376e-05/0.4586, allocations: 0 / 0.5205 GB, free: 232 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000667/0.4593, allocations: 131.8 kB / 0.5206 GB, free: 100 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002073/0.4613, allocations: 0.6521 MB / 0.5212 GB, free: 15.44 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001369/0.4615, allocations: 23.98 kB / 0.5212 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005064/0.4666, allocations: 3.949 MB / 0.5251 GB, free: 11.33 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.4666, allocations: 4.031 kB / 0.5251 GB, free: 11.32 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005967/0.4726, allocations: 3.702 MB / 0.5287 GB, free: 7.59 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007416/0.4734, allocations: 299.4 kB / 0.529 GB, free: 7.277 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000557/0.4739, allocations: 19.92 kB / 0.529 GB, free: 7.258 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/0.4752, allocations: 59.92 kB / 0.5291 GB, free: 7.199 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000214/0.4754, allocations: 55.98 kB / 0.5291 GB, free: 7.145 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.4755, allocations: 32 kB / 0.5292 GB, free: 7.113 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003273/0.4788, allocations: 1.754 MB / 0.5309 GB, free: 5.352 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4788, allocations: 0 / 0.5309 GB, free: 5.352 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003559/0.4824, allocations: 0.6327 MB / 0.5315 GB, free: 4.719 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.006455/0.4889, allocations: 4.328 MB / 0.5357 GB, free: 360 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2082/0.6971, allocations: 3.41 MB / 0.5391 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.6972, allocations: 0 / 0.5391 GB, free: 128.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.6984, allocations: 0.932 MB / 0.54 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002235/0.7006, allocations: 262.3 kB / 0.5402 GB, free: 127.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03721/0.7379, allocations: 30.2 MB / 0.5697 GB, free: 98.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002347/0.7403, allocations: 2.19 MB / 0.5718 GB, free: 96.68 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002539/0.7428, allocations: 1.392 MB / 0.5732 GB, free: 95.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001246/0.7441, allocations: 1.046 MB / 0.5742 GB, free: 94.24 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.7441, allocations: 4 kB / 0.5742 GB, free: 94.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06633/0.8104, allocations: 41.61 MB / 0.6149 GB, free: 52.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.03/18.84, allocations: 11.78 kB / 0.6149 GB, free: 52.89 MB / 462.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.csv","/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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches