Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009056/0.0009056, allocations: 183.8 kB / 8.139 MB, free: 2.176 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.154/1.154, allocations: 221.4 MB / 229.9 MB, free: 3.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009151/0.0009151, allocations: 93.39 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.805e-06/7.845e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2823, allocations: 50.4 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1172/0.3996, allocations: 100.5 MB / 487.4 MB, free: 2.297 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.3999, allocations: 84.48 kB / 487.5 MB, free: 2.215 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3809/0.7808, allocations: 73.93 MB / 0.5482 GB, free: 61.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000116/0.781, allocations: 72 kB / 0.5483 GB, free: 60.99 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.008136/0.7891, allocations: 3.46 MB / 0.5517 GB, free: 57.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.379e-05/0.7892, allocations: 8.031 kB / 0.5517 GB, free: 57.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008779/0.798, allocations: 1.867 MB / 0.5535 GB, free: 55.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.8085, allocations: 3.831 MB / 0.5573 GB, free: 51.71 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001846/0.8087, allocations: 120 kB / 0.5574 GB, free: 51.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001721/0.8104, allocations: 215.9 kB / 0.5576 GB, free: 51.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01014/0.8206, allocations: 5.765 MB / 0.5632 GB, free: 45.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01653/0.8371, allocations: 8.723 MB / 0.5717 GB, free: 35.92 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/0.8374, allocations: 55.47 kB / 0.5718 GB, free: 35.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001467/0.8389, allocations: 32 kB / 0.5718 GB, free: 35.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001561/0.8405, allocations: 1.06 MB / 0.5728 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04712/0.8876, allocations: 44.51 MB / 0.6163 GB, free: 4.828 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004709/0.8924, allocations: 2.744 MB / 0.619 GB, free: 1.941 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003066/0.8955, allocations: 1.847 MB / 0.6208 GB, free: 88 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0117/0.9072, allocations: 5.999 MB / 0.6267 GB, free: 9.836 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.956e-05/0.9073, allocations: 55.22 kB / 0.6267 GB, free: 9.773 MB / 410.7 MB Notification: Performance of pre-optimization done (n=151): time 4.649e-06/0.9073, allocations: 0 / 0.6267 GB, free: 9.773 MB / 410.7 MB Notification: Performance of matching and sorting (n=166): time 0.03963/0.9469, allocations: 14.06 MB / 0.6404 GB, free: 11.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001357/0.9472, allocations: 149.5 kB / 0.6406 GB, free: 11.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006866/0.954, allocations: 2.641 MB / 0.6432 GB, free: 8.754 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003835/0.9545, allocations: 25.7 kB / 0.6432 GB, free: 8.723 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00234/0.9568, allocations: 2.643 MB / 0.6458 GB, free: 6.039 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001023/0.9578, allocations: 0.6324 MB / 0.6464 GB, free: 5.398 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005431/0.9584, allocations: 0 / 0.6464 GB, free: 5.398 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0005945/0.959, allocations: 0.5419 MB / 0.6469 GB, free: 4.848 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003457/0.9625, allocations: 1.858 MB / 0.6487 GB, free: 2.984 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1802/1.143, allocations: 5.352 MB / 0.6539 GB, free: 135 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004421/1.147, allocations: 3.116 MB / 0.657 GB, free: 135 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.646e-05/1.147, allocations: 42.56 kB / 0.657 GB, free: 135 MB / 426.7 MB Notification: Performance of matching and sorting (n=746) (initialization): time 0.01347/1.161, allocations: 7.335 MB / 0.6642 GB, free: 134.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/1.161, allocations: 2.625 kB / 0.6642 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001065/1.161, allocations: 128.4 kB / 0.6643 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003751/1.165, allocations: 1.21 MB / 0.6655 GB, free: 134.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004091/1.169, allocations: 1.301 MB / 0.6668 GB, free: 134.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007796/1.177, allocations: 5.712 MB / 0.6724 GB, free: 133.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005544/1.182, allocations: 202.4 kB / 0.6725 GB, free: 133.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.183, allocations: 347.7 kB / 0.6729 GB, free: 133.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 574 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (703): * Single equations (assignments): 699 * 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,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008761/1.184, allocations: 426.2 kB / 0.6733 GB, free: 133.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005403/1.185, allocations: 278.8 kB / 0.6735 GB, free: 133.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006218/1.191, allocations: 3.144 MB / 0.6766 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-05/1.191, allocations: 17.31 kB / 0.6766 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.467e-05/1.191, allocations: 7.25 kB / 0.6766 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.039e-05/1.191, allocations: 9.219 kB / 0.6767 GB, free: 133 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01342/1.205, allocations: 6.715 MB / 0.6832 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/1.205, allocations: 0 / 0.6832 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001209/1.206, allocations: 222.5 kB / 0.6834 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00361/1.209, allocations: 1.023 MB / 0.6844 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002082/1.21, allocations: 13.83 kB / 0.6844 GB, free: 132.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007139/1.217, allocations: 5.373 MB / 0.6897 GB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.217, allocations: 2.344 kB / 0.6897 GB, free: 131.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009342/1.226, allocations: 5.583 MB / 0.6951 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009219/1.227, allocations: 326.8 kB / 0.6954 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008202/1.228, allocations: 1.312 kB / 0.6954 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001779/1.23, allocations: 59.42 kB / 0.6955 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/1.23, allocations: 74.78 kB / 0.6956 GB, free: 130.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/1.23, allocations: 46.41 kB / 0.6956 GB, free: 130.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003724/1.234, allocations: 1.744 MB / 0.6973 GB, free: 129.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005236/1.239, allocations: 0.7783 MB / 0.6981 GB, free: 129.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 125 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004441/1.24, allocations: 155.9 kB / 0.6982 GB, free: 129.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007196/1.247, allocations: 4.516 MB / 0.7026 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/1.247, allocations: 0 / 0.7026 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/1.249, allocations: 1.459 MB / 0.7041 GB, free: 127.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001582/1.25, allocations: 249.8 kB / 0.7043 GB, free: 127.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01299/1.263, allocations: 6.615 MB / 0.7108 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003158/1.267, allocations: 3.167 MB / 0.7139 GB, free: 121.7 MB / 426.7 MB Notification: Performance of SimCode: time 8.12e-07/1.267, allocations: 0 / 0.7139 GB, free: 121.7 MB / 426.7 MB Notification: Performance of Templates: time 0.05764/1.324, allocations: 32.7 MB / 0.7458 GB, free: 98.03 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches