Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001124/0.001124, allocations: 203.6 kB / 18.07 MB, free: 3.645 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 226.5 MB / 245.4 MB, free: 8.172 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008091/0.0008091, allocations: 105.9 kB / 297.4 MB, free: 6.848 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002422/0.0002423, allocations: 4 kB / 357.4 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2231, allocations: 51.28 MB / 408.7 MB, free: 27.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09409/0.3173, allocations: 77.08 MB / 485.7 MB, free: 14.5 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002272/0.3175, allocations: 75.95 kB / 485.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002574/0.3201, allocations: 1.105 MB / 486.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3201, allocations: 0 / 486.9 MB, free: 13.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.033e-05/0.3202, allocations: 8.75 kB / 486.9 MB, free: 13.31 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003/0.3205, allocations: 349.3 kB / 487.3 MB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.3205, allocations: 12.02 kB / 487.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.3205, allocations: 8.844 kB / 487.3 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.3207, allocations: 189.2 kB / 487.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.3207, allocations: 384 / 487.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.014e-05/0.3207, allocations: 8.312 kB / 487.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002116/0.321, allocations: 88.39 kB / 487.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.321, allocations: 192 / 487.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.321, allocations: 8.562 kB / 487.6 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.321, allocations: 0 / 487.6 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.192e-05/0.3211, allocations: 24.61 kB / 487.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002975/0.3214, allocations: 261.8 kB / 487.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.231e-05/0.3215, allocations: 49.09 kB / 487.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.832e-05/0.3215, allocations: 25.77 kB / 487.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.3216, allocations: 0 / 487.9 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.048e-05/0.3216, allocations: 30.56 kB / 488 MB, free: 12.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 8.61e-07/0.3216, allocations: 4 kB / 488 MB, free: 12.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002174/0.3218, allocations: 73.61 kB / 488 MB, free: 12.01 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.3219, allocations: 77.11 kB / 488.1 MB, free: 11.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.322, allocations: 134.1 kB / 488.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.322, allocations: 29.64 kB / 488.3 MB, free: 11.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/0.322, allocations: 84.14 kB / 488.3 MB, free: 11.65 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.385e-06/0.3221, allocations: 7.844 kB / 488.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.3221, allocations: 160 / 488.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.951e-05/0.3222, allocations: 326.8 kB / 488.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.502e-05/0.3222, allocations: 4 kB / 488.7 MB, free: 11.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.348e-05/0.3222, allocations: 21.7 kB / 488.7 MB, free: 11.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.621e-05/0.3223, allocations: 33.77 kB / 488.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3223, allocations: 0 / 488.7 MB, free: 11.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001048/0.3224, allocations: 61.56 kB / 488.8 MB, free: 11.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.3225, allocations: 4 kB / 488.8 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3225, allocations: 4 kB / 488.8 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.3225, allocations: 3.984 kB / 488.8 MB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.07e-05/0.3225, allocations: 12.06 kB / 488.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3226, allocations: 0 / 488.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.917e-05/0.3226, allocations: 7.984 kB / 488.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.3226, allocations: 0 / 488.8 MB, free: 11.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.832e-05/0.3227, allocations: 121.8 kB / 488.9 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.347e-05/0.3227, allocations: 37.55 kB / 489 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.82e-05/0.3228, allocations: 15.86 kB / 489 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.644e-06/0.3228, allocations: 0 / 489 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3228, allocations: 4.031 kB / 489 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.3228, allocations: 3.938 kB / 489 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.3229, allocations: 169.6 kB / 489.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.323, allocations: 0 / 489.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.628e-05/0.323, allocations: 4 kB / 489.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.323, allocations: 0 / 489.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.323, allocations: 4 kB / 489.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.323, allocations: 3.938 kB / 489.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.323, allocations: 0 / 489.2 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.3232, allocations: 172.2 kB / 489.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.778e-05/0.3232, allocations: 81.11 kB / 489.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.3233, allocations: 3.984 kB / 489.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.773e-05/0.3233, allocations: 8 kB / 489.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.517e-05/0.3234, allocations: 4.031 kB / 489.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.298e-06/0.3234, allocations: 4 kB / 489.4 MB, free: 10.42 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.758e-05/0.3234, allocations: 99.34 kB / 489.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3234, allocations: 0 / 489.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.3236, allocations: 11.98 kB / 489.6 MB, free: 10.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 9.03e-05/0.3237, allocations: 95.25 kB / 489.6 MB, free: 10.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.3239, allocations: 27.98 kB / 489.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.3239, allocations: 0 / 489.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.29e-05/0.3239, allocations: 12 kB / 489.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.3242, allocations: 18.36 kB / 489.7 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002836/0.3245, allocations: 183.4 kB / 489.9 MB, free: 9.941 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002131/0.3247, allocations: 0.6848 MB / 490.6 MB, free: 9.23 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.278e-05/0.3247, allocations: 11.44 kB / 490.6 MB, free: 9.219 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.3247, allocations: 0 / 490.6 MB, free: 9.219 MB / 362.7 MB Notification: Performance of Templates: time 0.001624/0.3264, allocations: 0.6194 MB / 491.2 MB, free: 8.605 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches