Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009913/0.0009917, allocations: 198.5 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.382/1.382, allocations: 226.5 MB / 245.4 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009544/0.0009547, allocations: 98.56 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002547/0.0002547, allocations: 4 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3097, allocations: 51.29 MB / 408.7 MB, free: 27.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.4483, allocations: 102 MB / 0.4986 GB, free: 5.617 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.4487, allocations: 101.4 kB / 0.4987 GB, free: 5.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3834/0.8321, allocations: 75.91 MB / 0.5729 GB, free: 38.79 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.8321, allocations: 4 kB / 0.5729 GB, free: 38.79 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001202/0.8322, allocations: 75.98 kB / 0.573 GB, free: 38.71 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.008935/0.8412, allocations: 3.573 MB / 0.5764 GB, free: 35.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.8412, allocations: 8.031 kB / 0.5764 GB, free: 35.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008876/0.8501, allocations: 2.191 MB / 0.5786 GB, free: 32.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005435/0.8556, allocations: 2.626 MB / 0.5812 GB, free: 30.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002051/0.8558, allocations: 283.7 kB / 0.5814 GB, free: 29.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001281/0.8571, allocations: 368.3 kB / 0.5818 GB, free: 29.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0184/0.8755, allocations: 10.41 MB / 0.5919 GB, free: 18.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001334/0.8757, allocations: 59.53 kB / 0.592 GB, free: 18.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00062/0.8763, allocations: 183.8 kB / 0.5922 GB, free: 17.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001129/0.8775, allocations: 0.9977 MB / 0.5931 GB, free: 16.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01606/0.8935, allocations: 8.652 MB / 0.6016 GB, free: 8.281 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04664/0.9402, allocations: 44.67 MB / 0.6452 GB, free: 10.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009683/0.95, allocations: 3.862 MB / 0.649 GB, free: 6.141 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002532/0.9525, allocations: 1.783 MB / 0.6507 GB, free: 4.348 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01075/0.9633, allocations: 7.567 MB / 0.6581 GB, free: 12.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.9634, allocations: 55.56 kB / 0.6582 GB, free: 12.44 MB / 442.7 MB Notification: Performance of pre-optimization done (n=150): time 4.548e-06/0.9634, allocations: 0 / 0.6582 GB, free: 12.44 MB / 442.7 MB Notification: Performance of matching and sorting (n=166): time 0.3257/1.289, allocations: 17.09 MB / 0.6749 GB, free: 109.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.999e-05/1.289, allocations: 145.7 kB / 0.675 GB, free: 109.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007564/1.297, allocations: 3.476 MB / 0.6784 GB, free: 109.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005503/1.297, allocations: 50.83 kB / 0.6784 GB, free: 109 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002699/1.3, allocations: 2.732 MB / 0.6811 GB, free: 107.7 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001117/1.301, allocations: 0.6456 MB / 0.6817 GB, free: 107.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002921/1.302, allocations: 115.5 kB / 0.6819 GB, free: 107.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003179/1.302, allocations: 0.5374 MB / 0.6824 GB, free: 107 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003423/1.305, allocations: 1.938 MB / 0.6843 GB, free: 107 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004925/1.31, allocations: 5.352 MB / 0.6895 GB, free: 102.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009516/1.32, allocations: 7.896 MB / 0.6972 GB, free: 98.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001508/1.32, allocations: 36.22 kB / 0.6972 GB, free: 98.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=722) (initialization): time 0.01862/1.339, allocations: 8.137 MB / 0.7052 GB, free: 96.52 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.339, allocations: 56.94 kB / 0.7052 GB, free: 96.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001642/1.339, allocations: 118.2 kB / 0.7054 GB, free: 96.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003841/1.343, allocations: 1.301 MB / 0.7066 GB, free: 96.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004367/1.347, allocations: 1.266 MB / 0.7079 GB, free: 96.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008032/1.355, allocations: 6.119 MB / 0.7138 GB, free: 93.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005461/1.361, allocations: 340.8 kB / 0.7142 GB, free: 93.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/1.362, allocations: 340 kB / 0.7145 GB, free: 93.16 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (679): * Single equations (assignments): 675 * 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.004146/1.366, allocations: 1.815 MB / 0.7163 GB, free: 92.28 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008523/1.367, allocations: 306.1 kB / 0.7165 GB, free: 92.12 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006593/1.374, allocations: 3.353 MB / 0.7198 GB, free: 91.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.41e-05/1.374, allocations: 26.88 kB / 0.7198 GB, free: 91.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.786e-05/1.374, allocations: 7.531 kB / 0.7199 GB, free: 91.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/1.374, allocations: 6.938 kB / 0.7199 GB, free: 91.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01495/1.389, allocations: 7.586 MB / 0.7273 GB, free: 88.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/1.389, allocations: 2 kB / 0.7273 GB, free: 88.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/1.39, allocations: 237.3 kB / 0.7275 GB, free: 88.33 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003322/1.393, allocations: 1.12 MB / 0.7286 GB, free: 88.16 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002444/1.394, allocations: 23.44 kB / 0.7286 GB, free: 88.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007522/1.401, allocations: 5.773 MB / 0.7343 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.401, allocations: 4.062 kB / 0.7343 GB, free: 84.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009016/1.41, allocations: 5.665 MB / 0.7398 GB, free: 79.31 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001286/1.411, allocations: 357.6 kB / 0.7401 GB, free: 78.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004142/1.412, allocations: 28 kB / 0.7402 GB, free: 78.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/1.413, allocations: 108.3 kB / 0.7403 GB, free: 78.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/1.413, allocations: 92.86 kB / 0.7403 GB, free: 78.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/1.414, allocations: 42.3 kB / 0.7404 GB, free: 78.76 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003462/1.417, allocations: 2.158 MB / 0.7425 GB, free: 77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.182e-06/1.417, allocations: 0 / 0.7425 GB, free: 77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0055/1.423, allocations: 0.9327 MB / 0.7434 GB, free: 76.08 MB / 442.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 () * Number of clocked 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.0005256/1.423, allocations: 179.2 kB / 0.7436 GB, free: 75.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.008427/1.432, allocations: 4.739 MB / 0.7482 GB, free: 71.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.432, allocations: 4 kB / 0.7482 GB, free: 71.76 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002175/1.434, allocations: 1.525 MB / 0.7497 GB, free: 70.42 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002832/1.437, allocations: 337.4 kB / 0.75 GB, free: 70.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01564/1.452, allocations: 9.901 MB / 0.7597 GB, free: 61.18 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002732/1.455, allocations: 2.849 MB / 0.7625 GB, free: 58.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/1.456, allocations: 260.9 kB / 0.7627 GB, free: 58.68 MB / 442.7 MB Notification: Performance of SimCode: time 1.352e-06/1.456, allocations: 4 kB / 0.7627 GB, free: 58.68 MB / 442.7 MB Notification: Performance of Templates: time 0.08661/1.543, allocations: 65.13 MB / 0.8263 GB, free: 12.2 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches