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.0021/0.0021, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.002069/0.002069, allocations: 200 kB / 18.01 MB, free: 5.047 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.493/1.493, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 39.94 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2942, allocations: 49.43 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.008932/0.3032, allocations: 7.115 MB / 407.4 MB, free: 1.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005978/0.3092, allocations: 3.139 MB / 410.5 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007201/0.31, allocations: 35.88 kB / 410.5 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001736/0.3117, allocations: 0.7937 MB / 411.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003007/0.3148, allocations: 1.319 MB / 412.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.3159, allocations: 499 kB / 413.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00357/0.3195, allocations: 2.526 MB / 415.7 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001574/0.3211, allocations: 1.165 MB / 416.8 MB, free: 8.133 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.3221, allocations: 0.7588 MB / 417.6 MB, free: 7.371 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.3236, allocations: 1.102 MB / 418.7 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002891/0.3239, allocations: 136 kB / 418.8 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001575/0.3255, allocations: 0.8814 MB / 419.7 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009725/0.3265, allocations: 0.9972 MB / 420.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.3277, allocations: 1.192 MB / 421.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004393/0.3321, allocations: 3.99 MB / 425.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3321, allocations: 0 / 425.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.3321, allocations: 0 / 425.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.535e-05/0.3322, allocations: 4 kB / 425.9 MB, free: 15.04 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.005321/0.3375, allocations: 2.971 MB / 428.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.3376, allocations: 11.97 kB / 428.9 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000545/0.3382, allocations: 454 kB / 429.3 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006103/0.3443, allocations: 1.664 MB / 431 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003022/0.3473, allocations: 1.644 MB / 432.6 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001106/0.3474, allocations: 118.9 kB / 432.7 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003178/0.3478, allocations: 151.8 kB / 432.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009277/0.3571, allocations: 6.363 MB / 439.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.698e-05/0.3571, allocations: 31.73 kB / 439.3 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002321/0.3574, allocations: 79.89 kB / 439.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002488/0.3599, allocations: 1.433 MB / 440.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01009/0.37, allocations: 5.681 MB / 446.5 MB, free: 9.805 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03032/0.4003, allocations: 26.25 MB / 472.7 MB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004667/0.4051, allocations: 2.269 MB / 475 MB, free: 12.31 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.4065, allocations: 1.023 MB / 476 MB, free: 11.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.54e-05/0.4065, allocations: 11.98 kB / 476 MB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.4066, allocations: 54.44 kB / 476.1 MB, free: 11.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.006e-06/0.4066, allocations: 0 / 476.1 MB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.02198/0.4286, allocations: 8.723 MB / 484.8 MB, free: 2.352 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.4287, allocations: 140.5 kB / 484.9 MB, free: 2.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004633/0.4334, allocations: 2.832 MB / 487.8 MB, free: 15.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002414/0.4336, allocations: 41.7 kB / 487.8 MB, free: 15.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.4354, allocations: 2.163 MB / 490 MB, free: 13.11 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006619/0.4361, allocations: 456.6 kB / 490.4 MB, free: 12.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001352/0.4374, allocations: 0.8815 MB / 491.3 MB, free: 11.76 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.4376, allocations: 305.1 kB / 491.6 MB, free: 11.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/0.4399, allocations: 1.406 MB / 493 MB, free: 10.05 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004747/0.4446, allocations: 4.238 MB / 497.2 MB, free: 4.379 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008025/0.4527, allocations: 6.124 MB / 0.4916 GB, free: 12.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.356e-05/0.4528, allocations: 32 kB / 0.4916 GB, free: 12.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=569) (initialization): time 0.0121/0.4649, allocations: 6.096 MB / 0.4975 GB, free: 6.711 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.528e-05/0.465, allocations: 52.03 kB / 0.4976 GB, free: 6.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/0.4652, allocations: 103.9 kB / 0.4977 GB, free: 6.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002346/0.4675, allocations: 0.8034 MB / 0.4985 GB, free: 5.754 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002873/0.4704, allocations: 0.9786 MB / 0.4994 GB, free: 4.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006662/0.4771, allocations: 4.476 MB / 0.5038 GB, free: 160 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003596/0.4807, allocations: 243.7 kB / 0.504 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008391/0.4816, allocations: 279.9 kB / 0.5043 GB, free: 15.64 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.002837/0.4844, allocations: 1.372 MB / 0.5056 GB, free: 14.26 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006376/0.4851, allocations: 242.7 kB / 0.5059 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004407/0.4895, allocations: 1.849 MB / 0.5077 GB, free: 12.15 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.74e-05/0.4895, allocations: 19.94 kB / 0.5077 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.14e-05/0.4896, allocations: 0 / 0.5077 GB, free: 12.13 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.404e-05/0.4896, allocations: 11.92 kB / 0.5077 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009831/0.4994, allocations: 4.79 MB / 0.5124 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.349e-05/0.4995, allocations: 3.984 kB / 0.5124 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006176/0.5001, allocations: 135.9 kB / 0.5125 GB, free: 7.113 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00204/0.5022, allocations: 0.6483 MB / 0.5131 GB, free: 6.461 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.077e-05/0.5022, allocations: 16 kB / 0.5132 GB, free: 6.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005485/0.5077, allocations: 3.941 MB / 0.517 GB, free: 2.363 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.636e-06/0.5078, allocations: 7.969 kB / 0.517 GB, free: 2.355 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006217/0.514, allocations: 3.708 MB / 0.5206 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006944/0.5147, allocations: 299.3 kB / 0.5209 GB, free: 14.31 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004305/0.5152, allocations: 27.92 kB / 0.521 GB, free: 14.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00102/0.5162, allocations: 55.92 kB / 0.521 GB, free: 14.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.5164, allocations: 55.86 kB / 0.5211 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-05/0.5165, allocations: 31.98 kB / 0.5211 GB, free: 14.14 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00328/0.5198, allocations: 1.758 MB / 0.5228 GB, free: 12.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5198, allocations: 4.062 kB / 0.5228 GB, free: 12.37 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003456/0.5233, allocations: 0.6445 MB / 0.5234 GB, free: 11.73 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.006866/0.5301, allocations: 4.321 MB / 0.5277 GB, free: 7.367 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005898/0.5361, allocations: 3.424 MB / 0.531 GB, free: 3.953 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.5361, allocations: 0 / 0.531 GB, free: 3.953 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001429/0.5375, allocations: 0.932 MB / 0.5319 GB, free: 3.008 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001879/0.5394, allocations: 259.7 kB / 0.5322 GB, free: 2.758 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2415/0.781, allocations: 30.21 MB / 0.5617 GB, free: 103.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/0.7826, allocations: 2.192 MB / 0.5638 GB, free: 102 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00221/0.7848, allocations: 1.398 MB / 0.5652 GB, free: 100.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009065/0.7857, allocations: 1.05 MB / 0.5662 GB, free: 99.55 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.7857, allocations: 0 / 0.5662 GB, free: 99.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06843/0.8542, allocations: 41.71 MB / 0.6069 GB, free: 58.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.67/19.52, allocations: 6.375 kB / 0.6069 GB, free: 58.22 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