Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,fileNamePrefix="Modelica_3_2_3_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.001387/0.001387, allocations: 102.6 kB / 17.72 MB, free: 5.359 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.001438/0.001438, allocations: 187.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 55.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0836/0.08479, allocations: 46.63 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.1642/0.2491, allocations: 7.124 MB / 381.8 MB, free: 9.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005285/0.2544, allocations: 3.152 MB / 384.9 MB, free: 8.219 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009345/0.2554, allocations: 35.38 kB / 385 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001784/0.2572, allocations: 0.7829 MB / 385.7 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003088/0.2603, allocations: 1.312 MB / 387.1 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.2614, allocations: 0.4981 MB / 387.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003259/0.2647, allocations: 2.542 MB / 390.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.266, allocations: 1.155 MB / 391.3 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001008/0.267, allocations: 0.772 MB / 392 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001273/0.2683, allocations: 1.108 MB / 393.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003072/0.2686, allocations: 135.2 kB / 393.3 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.2702, allocations: 0.8741 MB / 394.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000904/0.2711, allocations: 1.002 MB / 395.1 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00079/0.2719, allocations: 1.202 MB / 396.3 MB, free: 3.738 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003267/0.2752, allocations: 3.979 MB / 400.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2752, allocations: 1.094 kB / 400.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2752, allocations: 0 / 400.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.353e-05/0.2753, allocations: 0 / 400.3 MB, free: 1.484 MB / 318.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.004705/0.28, allocations: 2.91 MB / 403.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.675e-05/0.2801, allocations: 12.69 kB / 403.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004379/0.2805, allocations: 449.7 kB / 403.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005769/0.2863, allocations: 1.652 MB / 405.3 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003276/0.2896, allocations: 1.775 MB / 407.1 MB, free: 13.12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.763e-05/0.2897, allocations: 124.3 kB / 407.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002921/0.29, allocations: 160.5 kB / 407.4 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008025/0.298, allocations: 6.366 MB / 413.8 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.76e-05/0.2981, allocations: 31.66 kB / 413.8 MB, free: 8.055 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/0.2983, allocations: 83.89 kB / 413.9 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002282/0.3006, allocations: 1.441 MB / 415.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008758/0.3094, allocations: 5.658 MB / 421 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02886/0.3383, allocations: 26.22 MB / 447.2 MB, free: 5.824 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004164/0.3425, allocations: 2.269 MB / 449.5 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001247/0.3438, allocations: 1.022 MB / 450.5 MB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.611e-05/0.3438, allocations: 15.98 kB / 450.5 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.3439, allocations: 46.48 kB / 450.5 MB, free: 2.305 MB / 366.1 MB Notification: Performance of pre-optimization done (n=98): time 3.636e-06/0.3439, allocations: 4 kB / 450.5 MB, free: 2.301 MB / 366.1 MB Notification: Performance of matching and sorting (n=106): time 0.02048/0.3644, allocations: 8.643 MB / 459.2 MB, free: 9.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.281e-05/0.3645, allocations: 136.5 kB / 459.3 MB, free: 9.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004342/0.3688, allocations: 2.848 MB / 462.2 MB, free: 6.484 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001264/0.369, allocations: 41.7 kB / 462.2 MB, free: 6.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.3704, allocations: 2.079 MB / 464.3 MB, free: 4.328 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004575/0.3709, allocations: 434.6 kB / 464.7 MB, free: 3.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00122/0.3721, allocations: 0.8884 MB / 465.6 MB, free: 2.996 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.272e-05/0.3722, allocations: 301.1 kB / 465.9 MB, free: 2.699 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.3742, allocations: 1.41 MB / 467.3 MB, free: 1.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003833/0.378, allocations: 4.238 MB / 471.5 MB, free: 11.61 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006102/0.3842, allocations: 6.108 MB / 477.6 MB, free: 4.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.097e-05/0.3842, allocations: 28 kB / 477.7 MB, free: 4.066 MB / 398.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01002/0.3943, allocations: 6.089 MB / 483.8 MB, free: 13.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.126e-05/0.3944, allocations: 49.22 kB / 483.8 MB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001232/0.3945, allocations: 100 kB / 483.9 MB, free: 13.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/0.3967, allocations: 0.8005 MB / 484.7 MB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002725/0.3994, allocations: 0.9864 MB / 485.7 MB, free: 12.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005398/0.4048, allocations: 4.481 MB / 490.2 MB, free: 7.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002948/0.4078, allocations: 247.4 kB / 490.4 MB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005174/0.4083, allocations: 280 kB / 490.7 MB, free: 6.891 MB / 414.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.002209/0.4106, allocations: 1.371 MB / 492.1 MB, free: 5.508 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005208/0.4111, allocations: 233 kB / 492.3 MB, free: 5.277 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003856/0.415, allocations: 1.857 MB / 494.1 MB, free: 3.402 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.858e-05/0.415, allocations: 12 kB / 494.2 MB, free: 3.391 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-05/0.415, allocations: 7.938 kB / 494.2 MB, free: 3.383 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.415, allocations: 7.922 kB / 494.2 MB, free: 3.375 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009099/0.4241, allocations: 4.793 MB / 499 MB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.704e-06/0.4242, allocations: 0 / 499 MB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005829/0.4248, allocations: 135.8 kB / 499.1 MB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001922/0.4267, allocations: 0.6444 MB / 499.7 MB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-05/0.4268, allocations: 16 kB / 499.8 MB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004606/0.4314, allocations: 3.956 MB / 0.4919 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4314, allocations: 4.031 kB / 0.4919 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005407/0.4368, allocations: 3.693 MB / 0.4955 GB, free: 5.871 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.438, allocations: 437.8 kB / 0.4959 GB, free: 5.422 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004698/0.4385, allocations: 19.94 kB / 0.496 GB, free: 5.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.4396, allocations: 71.91 kB / 0.496 GB, free: 5.332 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.4398, allocations: 47.92 kB / 0.4961 GB, free: 5.285 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.746e-05/0.4398, allocations: 35.98 kB / 0.4961 GB, free: 5.25 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002963/0.4428, allocations: 1.77 MB / 0.4978 GB, free: 3.473 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4428, allocations: 0 / 0.4978 GB, free: 3.473 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003402/0.4462, allocations: 0.6485 MB / 0.4985 GB, free: 2.824 MB / 430.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.005751/0.452, allocations: 4.303 MB / 0.5027 GB, free: 14.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005169/0.4572, allocations: 3.406 MB / 0.506 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.4572, allocations: 0 / 0.506 GB, free: 11.09 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.4583, allocations: 0.9364 MB / 0.5069 GB, free: 10.14 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/0.4603, allocations: 268.5 kB / 0.5072 GB, free: 9.879 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04154/0.5018, allocations: 30.18 MB / 0.5366 GB, free: 7.836 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002462/0.5043, allocations: 2.184 MB / 0.5388 GB, free: 5.617 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002716/0.5071, allocations: 1.396 MB / 0.5401 GB, free: 4.215 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.5084, allocations: 1.058 MB / 0.5412 GB, free: 3.156 MB / 478.1 MB Notification: Performance of SimCode: time 6.81e-07/0.5084, allocations: 0 / 0.5412 GB, free: 3.156 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.51/3.018, allocations: 42.55 MB / 0.5827 GB, free: 136.7 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.82/22.84, allocations: 3.469 kB / 0.5827 GB, free: 136.7 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_Pendulum.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches