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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 98.48 kB / 17.06 MB, free: 6.121 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.002356/0.002356, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.386/1.386, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009395/0.0009395, allocations: 47.92 kB / 351.3 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2358, allocations: 49.44 MB / 400.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.00762/0.2434, allocations: 7.113 MB / 407.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005027/0.2485, allocations: 3.146 MB / 411 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004559/0.2489, allocations: 35.88 kB / 411 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001509/0.2505, allocations: 0.7743 MB / 411.8 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002503/0.253, allocations: 1.356 MB / 413.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009206/0.2539, allocations: 495 kB / 413.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002558/0.2565, allocations: 2.535 MB / 416.2 MB, free: 9.52 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.2577, allocations: 1.153 MB / 417.3 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008103/0.2585, allocations: 0.7666 MB / 418.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.2598, allocations: 1.098 MB / 419.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002508/0.2601, allocations: 136 kB / 419.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001348/0.2614, allocations: 0.8853 MB / 420.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007835/0.2622, allocations: 0.9972 MB / 421.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009947/0.2632, allocations: 1.191 MB / 422.4 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003567/0.2668, allocations: 3.963 MB / 426.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2668, allocations: 0 / 426.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2668, allocations: 0 / 426.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.937e-05/0.2669, allocations: 0 / 426.4 MB, free: 15.28 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.004826/0.2717, allocations: 2.894 MB / 429.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.2718, allocations: 8.031 kB / 429.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006108/0.2779, allocations: 1.639 MB / 430.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00227/0.2802, allocations: 1.328 MB / 432.2 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.156e-05/0.2803, allocations: 118.9 kB / 432.3 MB, free: 9.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000318/0.2806, allocations: 155.8 kB / 432.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009537/0.2901, allocations: 6.367 MB / 438.9 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.712e-05/0.2903, allocations: 27.75 kB / 438.9 MB, free: 2.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.2905, allocations: 79.89 kB / 439 MB, free: 2.035 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002516/0.293, allocations: 1.437 MB / 440.4 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009729/0.3028, allocations: 5.674 MB / 446.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02807/0.3309, allocations: 26.21 MB / 472.3 MB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004449/0.3354, allocations: 2.262 MB / 474.6 MB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001358/0.3368, allocations: 1.027 MB / 475.6 MB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.989e-05/0.3368, allocations: 11.98 kB / 475.6 MB, free: 12.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.257e-05/0.3369, allocations: 42.5 kB / 475.6 MB, free: 12.36 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 3.507e-06/0.3369, allocations: 0 / 475.6 MB, free: 12.36 MB / 398.1 MB Notification: Performance of matching and sorting (n=106): time 0.0218/0.3587, allocations: 8.581 MB / 484.2 MB, free: 3.629 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.695e-05/0.3588, allocations: 148.5 kB / 484.4 MB, free: 3.453 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00394/0.3627, allocations: 2.819 MB / 487.2 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001262/0.3629, allocations: 41.7 kB / 487.2 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001386/0.3643, allocations: 2.075 MB / 489.3 MB, free: 14.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000441/0.3647, allocations: 434.6 kB / 489.7 MB, free: 14.04 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/0.3659, allocations: 0.8808 MB / 490.6 MB, free: 13.14 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.221e-05/0.366, allocations: 305.1 kB / 490.9 MB, free: 12.84 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002112/0.3681, allocations: 1.418 MB / 492.3 MB, free: 11.41 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003708/0.3718, allocations: 4.242 MB / 496.6 MB, free: 5.742 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007175/0.379, allocations: 6.136 MB / 0.4909 GB, free: 14.2 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.406e-05/0.3791, allocations: 32 kB / 0.4909 GB, free: 14.17 MB / 430.1 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.01156/0.3907, allocations: 6.106 MB / 0.4969 GB, free: 8.051 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.278e-05/0.3908, allocations: 48 kB / 0.497 GB, free: 8.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001335/0.3909, allocations: 100 kB / 0.497 GB, free: 7.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002316/0.3933, allocations: 0.7971 MB / 0.4978 GB, free: 7.105 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002931/0.3962, allocations: 0.9903 MB / 0.4988 GB, free: 6.113 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006094/0.4023, allocations: 4.484 MB / 0.5032 GB, free: 1.492 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003087/0.4054, allocations: 243.5 kB / 0.5034 GB, free: 1.254 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005637/0.406, allocations: 276 kB / 0.5037 GB, free: 0.9844 MB / 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 (537): * Single equations (assignments): 533 * 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.002355/0.4084, allocations: 1.372 MB / 0.505 GB, free: 15.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000454/0.4088, allocations: 232.9 kB / 0.5052 GB, free: 15.37 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004003/0.4129, allocations: 1.849 MB / 0.507 GB, free: 13.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.75e-05/0.4129, allocations: 15.94 kB / 0.507 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.4129, allocations: 8 kB / 0.5071 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.372e-05/0.4129, allocations: 11.97 kB / 0.5071 GB, free: 13.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009167/0.4221, allocations: 4.782 MB / 0.5117 GB, free: 8.609 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.4222, allocations: 8 kB / 0.5117 GB, free: 8.602 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006459/0.4228, allocations: 131.8 kB / 0.5119 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.4249, allocations: 0.6483 MB / 0.5125 GB, free: 7.82 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.752e-05/0.425, allocations: 23.98 kB / 0.5125 GB, free: 7.797 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005027/0.4301, allocations: 3.945 MB / 0.5164 GB, free: 3.711 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4301, allocations: 0 / 0.5164 GB, free: 3.711 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006029/0.4361, allocations: 3.685 MB / 0.52 GB, free: 15.99 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000729/0.4369, allocations: 293.9 kB / 0.5203 GB, free: 15.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005229/0.4374, allocations: 15.94 kB / 0.5203 GB, free: 15.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.4386, allocations: 63.91 kB / 0.5203 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002075/0.4388, allocations: 59.86 kB / 0.5204 GB, free: 15.55 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.074e-05/0.4389, allocations: 32.06 kB / 0.5204 GB, free: 15.52 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003139/0.4421, allocations: 1.754 MB / 0.5221 GB, free: 13.76 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4421, allocations: 3.938 kB / 0.5221 GB, free: 13.75 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003503/0.4456, allocations: 0.6484 MB / 0.5228 GB, free: 13.11 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.0004617/0.4461, allocations: 153.3 kB / 0.5229 GB, free: 12.95 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005708/0.4518, allocations: 3.427 MB / 0.5263 GB, free: 9.535 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4518, allocations: 0 / 0.5263 GB, free: 9.535 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.4531, allocations: 0.9276 MB / 0.5272 GB, free: 8.594 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.4551, allocations: 264.7 kB / 0.5274 GB, free: 8.336 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009103/0.4642, allocations: 5.411 MB / 0.5327 GB, free: 2.875 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002785/0.467, allocations: 2.192 MB / 0.5348 GB, free: 0.6484 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2028/0.6699, allocations: 1.397 MB / 0.5362 GB, free: 129.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007166/0.6707, allocations: 160.9 kB / 0.5364 GB, free: 129.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6707, allocations: 3.594 kB / 0.5364 GB, free: 129.8 MB / 462.1 MB Notification: Performance of Templates: time 0.03755/0.7082, allocations: 20.71 MB / 0.5566 GB, free: 118.2 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","/var/lib/jenkins/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