Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001296/0.001296, allocations: 180.1 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.762/1.762, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007201/0.0007204, allocations: 97.05 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002753/0.0002753, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1836, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.009118/0.1928, allocations: 12.65 MB / 387.2 MB, free: 35.7 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005715/0.1985, allocations: 4.015 MB / 391.2 MB, free: 32.15 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006977/0.1992, allocations: 59.81 kB / 391.3 MB, free: 32.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007447/0.2, allocations: 0.5987 MB / 391.9 MB, free: 31.49 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002756/0.2028, allocations: 2.137 MB / 394 MB, free: 29.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005773/0.2033, allocations: 415.3 kB / 394.4 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001818/0.2052, allocations: 2.726 MB / 397.1 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.2065, allocations: 1.326 MB / 398.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006174/0.2071, allocations: 0.7082 MB / 399.2 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009004/0.208, allocations: 1.141 MB / 400.3 MB, free: 22.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001555/0.2082, allocations: 80 kB / 400.4 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009187/0.2091, allocations: 0.7255 MB / 401.1 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005085/0.2096, allocations: 0.9427 MB / 402.1 MB, free: 21.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.2099, allocations: 496.1 kB / 402.6 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001686/0.2116, allocations: 2.943 MB / 405.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2116, allocations: 0 / 405.5 MB, free: 17.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2116, allocations: 4 kB / 405.5 MB, free: 17.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.293e-05/0.2116, allocations: 0 / 405.5 MB, free: 17.79 MB / 298.7 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.002967/0.2146, allocations: 2.434 MB / 407.9 MB, free: 15.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.2146, allocations: 8.031 kB / 407.9 MB, free: 15.29 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004909/0.2195, allocations: 1.689 MB / 409.6 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001613/0.2212, allocations: 1.347 MB / 411 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.865e-05/0.2212, allocations: 118.9 kB / 411.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002375/0.2215, allocations: 155.9 kB / 411.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005817/0.2273, allocations: 6.363 MB / 417.6 MB, free: 5.051 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.659e-05/0.2274, allocations: 27.75 kB / 417.6 MB, free: 5.023 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.2275, allocations: 83.89 kB / 417.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001852/0.2294, allocations: 1.437 MB / 419.2 MB, free: 3.508 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007195/0.2366, allocations: 5.654 MB / 424.8 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02583/0.2625, allocations: 26.3 MB / 451.1 MB, free: 2.719 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004175/0.2667, allocations: 2.255 MB / 453.4 MB, free: 328 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001296/0.268, allocations: 1.019 MB / 454.4 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.322e-05/0.2681, allocations: 8 kB / 454.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.2681, allocations: 50.25 kB / 454.4 MB, free: 15.22 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 3.607e-06/0.2681, allocations: 4 kB / 454.4 MB, free: 15.22 MB / 346.7 MB Notification: Performance of matching and sorting (n=106): time 0.02028/0.2884, allocations: 8.556 MB / 463 MB, free: 6.52 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.808e-05/0.2885, allocations: 140.5 kB / 463.1 MB, free: 6.352 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003513/0.292, allocations: 2.816 MB / 466 MB, free: 3.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.555e-05/0.2921, allocations: 45.62 kB / 466 MB, free: 3.469 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.2935, allocations: 2.067 MB / 468.1 MB, free: 1.371 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004204/0.294, allocations: 442.6 kB / 468.5 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001558/0.2941, allocations: 84 kB / 468.6 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003194/0.2945, allocations: 0.4919 MB / 469.1 MB, free: 360 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001988/0.2964, allocations: 1.398 MB / 470.5 MB, free: 14.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003793/0.3003, allocations: 4.226 MB / 474.7 MB, free: 9.285 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.3033, allocations: 2.386 MB / 477.1 MB, free: 6.898 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.264e-05/0.3033, allocations: 32 kB / 477.1 MB, free: 6.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=573) (initialization): time 0.009189/0.3125, allocations: 6.062 MB / 483.2 MB, free: 0.793 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.933e-05/0.3126, allocations: 48 kB / 483.2 MB, free: 0.7461 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.328e-05/0.3127, allocations: 100 kB / 483.3 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/0.3148, allocations: 0.8131 MB / 484.1 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002552/0.3174, allocations: 0.9942 MB / 485.1 MB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005172/0.3226, allocations: 4.164 MB / 489.3 MB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00217/0.3248, allocations: 247.5 kB / 489.5 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003044/0.3251, allocations: 276 kB / 489.8 MB, free: 10.03 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001709/0.3268, allocations: 1.372 MB / 491.2 MB, free: 8.648 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002987/0.3271, allocations: 229 kB / 491.4 MB, free: 8.422 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003567/0.3307, allocations: 1.853 MB / 493.2 MB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-05/0.3307, allocations: 12 kB / 493.3 MB, free: 6.535 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.3307, allocations: 11.95 kB / 493.3 MB, free: 6.523 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.726e-06/0.3308, allocations: 3.984 kB / 493.3 MB, free: 6.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007837/0.3386, allocations: 4.789 MB / 498.1 MB, free: 1.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.3386, allocations: 3.938 kB / 498.1 MB, free: 1.645 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005656/0.3392, allocations: 143.9 kB / 498.2 MB, free: 1.504 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001934/0.3411, allocations: 0.6404 MB / 498.8 MB, free: 0.8594 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.361e-05/0.3412, allocations: 16.09 kB / 498.9 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004652/0.3459, allocations: 3.701 MB / 0.4908 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3459, allocations: 384 / 0.4908 GB, free: 13.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005824/0.3517, allocations: 3.676 MB / 0.4944 GB, free: 9.301 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009609/0.3527, allocations: 445.8 kB / 0.4948 GB, free: 8.844 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001925/0.3529, allocations: 19.97 kB / 0.4948 GB, free: 8.824 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008094/0.3537, allocations: 63.86 kB / 0.4949 GB, free: 8.762 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000128/0.3539, allocations: 71.81 kB / 0.495 GB, free: 8.691 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.072e-05/0.3539, allocations: 28 kB / 0.495 GB, free: 8.664 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002635/0.3566, allocations: 1.75 MB / 0.4967 GB, free: 6.906 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3566, allocations: 0 / 0.4967 GB, free: 6.906 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003283/0.3599, allocations: 0.6445 MB / 0.4973 GB, free: 6.262 MB / 394.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003422/0.3602, allocations: 147.1 kB / 0.4975 GB, free: 6.105 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005383/0.3656, allocations: 3.394 MB / 0.5008 GB, free: 2.727 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3656, allocations: 4 kB / 0.5008 GB, free: 2.723 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.3668, allocations: 0.9274 MB / 0.5017 GB, free: 1.781 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001409/0.3683, allocations: 251.6 kB / 0.5019 GB, free: 1.535 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2585/0.6267, allocations: 6.724 MB / 0.5085 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003352/0.6302, allocations: 2.18 MB / 0.5106 GB, free: 120.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009306/0.6312, allocations: 200.3 kB / 0.5108 GB, free: 120.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6312, allocations: 0 / 0.5108 GB, free: 120.3 MB / 394.7 MB Notification: Performance of Templates: time 0.08928/0.7205, allocations: 46.82 MB / 0.5565 GB, free: 80.02 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/Pendulum/Pendulum.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches