Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001076/0.001076, allocations: 199.4 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.367/1.367, allocations: 226.5 MB / 245.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000759/0.000759, allocations: 97.88 kB / 297.4 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002399, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2184, allocations: 51.29 MB / 408.7 MB, free: 27.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08568/0.3041, allocations: 77.35 MB / 486 MB, free: 14.29 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002355/0.3044, allocations: 79.94 kB / 486.1 MB, free: 14.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003204/0.3076, allocations: 1.309 MB / 487.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.906e-06/0.3076, allocations: 0 / 487.4 MB, free: 12.9 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.3076, allocations: 1.031 kB / 487.4 MB, free: 12.9 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.000376/0.308, allocations: 369.3 kB / 487.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.3081, allocations: 8.031 kB / 487.8 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.3081, allocations: 16.69 kB / 487.8 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002149/0.3083, allocations: 192.2 kB / 488 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.3083, allocations: 8.375 kB / 488 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.3084, allocations: 4.375 kB / 488 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002878/0.3087, allocations: 143.5 kB / 488.1 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.3087, allocations: 192 / 488.1 MB, free: 12.08 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.116e-05/0.3087, allocations: 7.938 kB / 488.1 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.3087, allocations: 0 / 488.1 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.569e-05/0.3088, allocations: 19.98 kB / 488.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.3089, allocations: 170.6 kB / 488.3 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001349/0.3091, allocations: 91.3 kB / 488.4 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.879e-05/0.3091, allocations: 40.78 kB / 488.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.055e-05/0.3092, allocations: 0 / 488.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.3092, allocations: 34.56 kB / 488.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 9.32e-07/0.3092, allocations: 4 kB / 488.5 MB, free: 11.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001883/0.3094, allocations: 93.75 kB / 488.6 MB, free: 11.55 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.3095, allocations: 63.42 kB / 488.6 MB, free: 11.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.3096, allocations: 148.4 kB / 488.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.3096, allocations: 29.7 kB / 488.8 MB, free: 11.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.515e-05/0.3097, allocations: 84.14 kB / 488.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.477e-05/0.3097, allocations: 7.906 kB / 488.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.3097, allocations: 0 / 488.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.3098, allocations: 322.8 kB / 489.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.893e-05/0.3098, allocations: 8 kB / 489.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.442e-05/0.3099, allocations: 66.84 kB / 489.3 MB, free: 10.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.57e-05/0.31, allocations: 74.73 kB / 489.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.31, allocations: 0 / 489.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001233/0.3101, allocations: 89.5 kB / 489.5 MB, free: 10.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.3102, allocations: 7.938 kB / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.3102, allocations: 4.25 kB / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.032e-05/0.3102, allocations: 4 kB / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.624e-05/0.3103, allocations: 19.98 kB / 489.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.3103, allocations: 0 / 489.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.463e-05/0.3103, allocations: 7.906 kB / 489.5 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.3103, allocations: 7.938 kB / 489.5 MB, free: 10.53 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 9.28e-05/0.3104, allocations: 129.8 kB / 489.6 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001368/0.3106, allocations: 85.86 kB / 489.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.3106, allocations: 12.72 kB / 489.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.3106, allocations: 11.94 kB / 489.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.3106, allocations: 0 / 489.7 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3107, allocations: 3.984 kB / 489.7 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001162/0.3108, allocations: 165.7 kB / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3108, allocations: 0 / 489.9 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-05/0.3109, allocations: 19.92 kB / 489.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.3109, allocations: 3.938 kB / 489.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.3109, allocations: 0 / 489.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3109, allocations: 4 kB / 489.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3109, allocations: 0 / 489.9 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001244/0.311, allocations: 109 kB / 490 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.293e-05/0.3111, allocations: 93 kB / 490.1 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.578e-05/0.3111, allocations: 7.922 kB / 490.1 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.366e-05/0.3112, allocations: 8 kB / 490.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.114e-06/0.3112, allocations: 0 / 490.1 MB, free: 9.785 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.36e-06/0.3112, allocations: 4 kB / 490.1 MB, free: 9.781 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.865e-05/0.3112, allocations: 109.8 kB / 490.3 MB, free: 9.676 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3113, allocations: 3.938 kB / 490.3 MB, free: 9.672 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001806/0.3114, allocations: 12 kB / 490.3 MB, free: 9.66 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.000108/0.3116, allocations: 107.2 kB / 490.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.99e-05/0.3117, allocations: 39.92 kB / 490.4 MB, free: 9.508 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3117, allocations: 0 / 490.4 MB, free: 9.508 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.81e-07/0.3117, allocations: 4 kB / 490.4 MB, free: 9.504 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.312, allocations: 54.84 kB / 490.5 MB, free: 9.453 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002944/0.3123, allocations: 208.8 kB / 490.7 MB, free: 9.215 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.3126, allocations: 0.7043 MB / 491.4 MB, free: 8.484 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.3126, allocations: 11.44 kB / 491.4 MB, free: 8.473 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3126, allocations: 0 / 491.4 MB, free: 8.473 MB / 362.7 MB Notification: Performance of Templates: time 0.00204/0.3146, allocations: 0.8648 MB / 492.3 MB, free: 7.617 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches