Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.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.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00169/0.00169, allocations: 181.3 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.549/1.549, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008914/0.0008914, allocations: 84.78 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003611, allocations: 7.938 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3029/0.3033, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1114/0.4148, allocations: 76.11 MB / 477.6 MB, free: 4.379 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002651/0.4151, allocations: 75.95 kB / 477.7 MB, free: 4.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002008/0.4171, allocations: 0.703 MB / 478.4 MB, free: 3.602 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.666e-06/0.4172, allocations: 0 / 478.4 MB, free: 3.602 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.238e-05/0.4172, allocations: 4 kB / 478.4 MB, free: 3.598 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004354/0.4176, allocations: 332 kB / 478.7 MB, free: 3.23 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.404e-05/0.4177, allocations: 8.031 kB / 478.7 MB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.022e-05/0.4178, allocations: 7.953 kB / 478.7 MB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.418, allocations: 182.8 kB / 478.9 MB, free: 2.996 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.4181, allocations: 3.984 kB / 478.9 MB, free: 2.992 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.201e-05/0.4181, allocations: 7.938 kB / 478.9 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.4184, allocations: 115.3 kB / 479 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.4185, allocations: 0 / 479 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.001e-05/0.4185, allocations: 0 / 479 MB, free: 2.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.4185, allocations: 3.953 kB / 479 MB, free: 2.855 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.667e-05/0.4186, allocations: 27.98 kB / 479.1 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001861/0.4188, allocations: 149.7 kB / 479.2 MB, free: 2.633 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001728/0.419, allocations: 69.55 kB / 479.3 MB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.73e-05/0.419, allocations: 8.031 kB / 479.3 MB, free: 2.551 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.419, allocations: 30.56 kB / 479.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.492e-06/0.419, allocations: 0 / 479.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.000249/0.4193, allocations: 69.81 kB / 479.4 MB, free: 2.438 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.04e-05/0.4194, allocations: 63.33 kB / 479.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.903e-05/0.4195, allocations: 101 kB / 479.5 MB, free: 2.258 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/0.4195, allocations: 29.7 kB / 479.6 MB, free: 2.223 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.839e-05/0.4196, allocations: 84.14 kB / 479.7 MB, free: 2.137 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.143e-06/0.4196, allocations: 3.984 kB / 479.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.816e-06/0.4196, allocations: 0 / 479.7 MB, free: 2.133 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.4197, allocations: 318.8 kB / 480 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.243e-05/0.4198, allocations: 4 kB / 480 MB, free: 1.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.812e-05/0.4198, allocations: 27.44 kB / 480 MB, free: 1.77 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.327e-05/0.4198, allocations: 11.98 kB / 480 MB, free: 1.758 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4198, allocations: 0 / 480 MB, free: 1.758 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.733e-05/0.4199, allocations: 57.48 kB / 480.1 MB, free: 1.695 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.42, allocations: 4 kB / 480.1 MB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.42, allocations: 4.125 kB / 480.1 MB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.42, allocations: 11.92 kB / 480.1 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.868e-05/0.4201, allocations: 8 kB / 480.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.4201, allocations: 0 / 480.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.91e-05/0.4201, allocations: 0 / 480.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.4201, allocations: 4 kB / 480.1 MB, free: 1.664 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001001/0.4202, allocations: 117.7 kB / 480.2 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.4203, allocations: 65.61 kB / 480.3 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.4204, allocations: 11.91 kB / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4204, allocations: 0 / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.4204, allocations: 0 / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.845e-06/0.4204, allocations: 0 / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.4205, allocations: 161.5 kB / 480.4 MB, free: 1.246 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.4205, allocations: 4 kB / 480.5 MB, free: 1.242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.779e-05/0.4206, allocations: 7.984 kB / 480.5 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.4206, allocations: 4 kB / 480.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.4206, allocations: 0 / 480.5 MB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.4206, allocations: 3.938 kB / 480.5 MB, free: 1.227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.4206, allocations: 4 kB / 480.5 MB, free: 1.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.4208, allocations: 89.06 kB / 480.6 MB, free: 1.117 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.225e-05/0.4208, allocations: 77.11 kB / 480.6 MB, free: 1.023 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.276e-05/0.4208, allocations: 3.938 kB / 480.6 MB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.603e-05/0.4209, allocations: 4 kB / 480.6 MB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-06/0.4209, allocations: 4 kB / 480.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.466e-06/0.4209, allocations: 0 / 480.6 MB, free: 1.012 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.389e-05/0.421, allocations: 91.52 kB / 480.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.421, allocations: 0 / 480.7 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001769/0.4212, allocations: 4 kB / 480.7 MB, free: 0.918 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001394/0.4213, allocations: 107.4 kB / 480.8 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001192/0.4214, allocations: 24.11 kB / 480.9 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.4214, allocations: 8.062 kB / 480.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.71e-07/0.4214, allocations: 0 / 480.9 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.4217, allocations: 26.2 kB / 480.9 MB, free: 0.7539 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000384/0.4221, allocations: 120.7 kB / 481 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.4224, allocations: 0.6809 MB / 481.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.711e-05/0.4224, allocations: 11.98 kB / 481.7 MB, free: 15.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.505e-05/0.4225, allocations: 7.438 kB / 481.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4225, allocations: 0 / 481.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of Templates: time 0.002469/0.4249, allocations: 286.9 kB / 482 MB, free: 15.6 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/TimeBasedStep/TimeBasedStep.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches