Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001666/0.001666, allocations: 197.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.54/1.54, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001133/0.001133, allocations: 102.6 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002666, allocations: 4 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.3049, allocations: 51.3 MB / 409.4 MB, free: 27.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.4378, allocations: 77.36 MB / 486.7 MB, free: 14.13 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003251/0.4382, allocations: 75.95 kB / 486.8 MB, free: 14.06 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004373/0.4426, allocations: 1.296 MB / 488.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4426, allocations: 0 / 488.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.493e-05/0.4426, allocations: 5.75 kB / 488.1 MB, free: 12.76 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004527/0.4431, allocations: 367.2 kB / 488.5 MB, free: 12.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.4431, allocations: 8.031 kB / 488.5 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.4432, allocations: 16.34 kB / 488.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/0.4435, allocations: 196.2 kB / 488.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.4435, allocations: 12.31 kB / 488.7 MB, free: 12.09 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.4435, allocations: 4.375 kB / 488.7 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003775/0.4439, allocations: 145.8 kB / 488.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.4439, allocations: 2.25 kB / 488.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.444, allocations: 3.938 kB / 488.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.444, allocations: 0 / 488.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.214e-05/0.444, allocations: 19.98 kB / 488.9 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001963/0.4442, allocations: 173.7 kB / 489 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001959/0.4445, allocations: 78.64 kB / 489.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.664e-05/0.4446, allocations: 48.81 kB / 489.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.098e-05/0.4446, allocations: 0 / 489.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.4446, allocations: 38.56 kB / 489.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.112e-06/0.4446, allocations: 0 / 489.2 MB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0002658/0.4449, allocations: 101.5 kB / 489.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.315e-05/0.445, allocations: 63.39 kB / 489.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001596/0.4452, allocations: 143.8 kB / 489.5 MB, free: 11.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.4452, allocations: 29.7 kB / 489.5 MB, free: 11.14 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.898e-05/0.4452, allocations: 84.3 kB / 489.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.424e-05/0.4453, allocations: 11.89 kB / 489.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-06/0.4453, allocations: 0 / 489.6 MB, free: 11.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.4454, allocations: 314.8 kB / 489.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.059e-05/0.4455, allocations: 15.98 kB / 489.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.422e-05/0.4456, allocations: 62.84 kB / 490 MB, free: 10.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.4457, allocations: 74.75 kB / 490.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.4457, allocations: 0 / 490.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001763/0.4459, allocations: 93.64 kB / 490.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.4459, allocations: 11.94 kB / 490.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.4459, allocations: 0 / 490.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.289e-05/0.446, allocations: 4 kB / 490.2 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.429e-05/0.4461, allocations: 12 kB / 490.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.4461, allocations: 4 kB / 490.2 MB, free: 10.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.621e-05/0.4461, allocations: 7.844 kB / 490.2 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.557e-05/0.4462, allocations: 4 kB / 490.2 MB, free: 10.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001252/0.4463, allocations: 137.9 kB / 490.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.4464, allocations: 77.53 kB / 490.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.469e-05/0.4465, allocations: 20.7 kB / 490.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.4465, allocations: 192 / 490.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4465, allocations: 0 / 490.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4465, allocations: 3.938 kB / 490.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000125/0.4467, allocations: 173.6 kB / 490.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4467, allocations: 0 / 490.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.247e-05/0.4468, allocations: 11.94 kB / 490.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.4468, allocations: 7.938 kB / 490.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.4468, allocations: 0 / 490.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4468, allocations: 4 kB / 490.6 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.4468, allocations: 0 / 490.6 MB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.447, allocations: 105 kB / 490.7 MB, free: 9.77 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.4471, allocations: 93 kB / 490.8 MB, free: 9.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.302e-05/0.4471, allocations: 7.938 kB / 490.8 MB, free: 9.652 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.105e-05/0.4472, allocations: 4 kB / 490.8 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-06/0.4472, allocations: 0 / 490.8 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.4472, allocations: 0 / 490.8 MB, free: 9.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.158e-05/0.4473, allocations: 117.9 kB / 491 MB, free: 9.535 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4473, allocations: 3.938 kB / 491 MB, free: 9.531 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003036/0.4476, allocations: 4 kB / 491 MB, free: 9.527 MB / 362.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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.0001432/0.4478, allocations: 108.7 kB / 491.1 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001528/0.4479, allocations: 52.33 kB / 491.1 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.4479, allocations: 64 / 491.1 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.4479, allocations: 4 kB / 491.1 MB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004018/0.4484, allocations: 47.95 kB / 491.2 MB, free: 9.312 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004051/0.4488, allocations: 183.1 kB / 491.4 MB, free: 9.105 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.4491, allocations: 0.7044 MB / 492.1 MB, free: 8.375 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.547e-05/0.4492, allocations: 8.641 kB / 492.1 MB, free: 8.363 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.225e-05/0.4492, allocations: 11.44 kB / 492.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4492, allocations: 0 / 492.1 MB, free: 8.352 MB / 362.7 MB Notification: Performance of Templates: time 0.003439/0.4527, allocations: 0.6205 MB / 492.7 MB, free: 7.738 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches