Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001436/0.001436, allocations: 199.9 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.263/1.263, allocations: 226.5 MB / 245.4 MB, free: 8.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008114/0.0008115, allocations: 102.1 kB / 297.4 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002185/0.0002186, allocations: 8 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1845, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08557/0.2701, allocations: 77.05 MB / 485.7 MB, free: 14.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.2703, allocations: 75.95 kB / 485.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002321/0.2727, allocations: 1.046 MB / 486.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2727, allocations: 1.719 kB / 486.8 MB, free: 13.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.2727, allocations: 0 / 486.8 MB, free: 13.43 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.0002977/0.273, allocations: 347.4 kB / 487.2 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.273, allocations: 8.969 kB / 487.2 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.875e-05/0.2731, allocations: 8.844 kB / 487.2 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001616/0.2732, allocations: 189.3 kB / 487.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.2733, allocations: 384 / 487.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.926e-06/0.2733, allocations: 4.375 kB / 487.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001966/0.2735, allocations: 94.45 kB / 487.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.2735, allocations: 4.125 kB / 487.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.2735, allocations: 3.938 kB / 487.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2735, allocations: 0 / 487.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.162e-05/0.2736, allocations: 11.94 kB / 487.5 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000271/0.2739, allocations: 261.8 kB / 487.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.453e-05/0.2739, allocations: 49.09 kB / 487.8 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.478e-05/0.274, allocations: 13.78 kB / 487.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.274, allocations: 0 / 487.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.856e-05/0.274, allocations: 42.55 kB / 487.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.274, allocations: 0 / 487.9 MB, free: 12.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001817/0.2742, allocations: 57.53 kB / 487.9 MB, free: 12.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.2743, allocations: 81.11 kB / 488 MB, free: 12.06 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.2744, allocations: 129.8 kB / 488.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.2744, allocations: 29.95 kB / 488.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.2745, allocations: 84.14 kB / 488.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.993e-06/0.2745, allocations: 3.938 kB / 488.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.174e-06/0.2745, allocations: 0 / 488.2 MB, free: 11.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.2746, allocations: 322.8 kB / 488.5 MB, free: 11.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.734e-05/0.2746, allocations: 4 kB / 488.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.75e-05/0.2747, allocations: 17.66 kB / 488.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.192e-05/0.2747, allocations: 29.77 kB / 488.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2747, allocations: 0 / 488.6 MB, free: 11.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.184e-05/0.2748, allocations: 61.47 kB / 488.7 MB, free: 11.35 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2749, allocations: 4 kB / 488.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.2749, allocations: 0 / 488.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2749, allocations: 12.05 kB / 488.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.216e-05/0.2749, allocations: 0 / 488.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.2749, allocations: 0 / 488.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.475e-05/0.2749, allocations: 0 / 488.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-06/0.275, allocations: 8 kB / 488.7 MB, free: 11.32 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 8.05e-05/0.275, allocations: 117.8 kB / 488.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.483e-05/0.2751, allocations: 41.64 kB / 488.8 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.562e-05/0.2751, allocations: 3.531 kB / 488.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2751, allocations: 32 / 488.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2752, allocations: 8 kB / 488.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2752, allocations: 0 / 488.8 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.2753, allocations: 169.6 kB / 489 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.2753, allocations: 0 / 489 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.14e-06/0.2753, allocations: 0 / 489 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.2753, allocations: 0 / 489 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.2754, allocations: 4 kB / 489 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2754, allocations: 0 / 489 MB, free: 10.92 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2754, allocations: 3.938 kB / 489 MB, free: 10.91 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.2755, allocations: 160.2 kB / 489.2 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.94e-05/0.2756, allocations: 89 kB / 489.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.233e-05/0.2756, allocations: 3.938 kB / 489.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.16e-05/0.2756, allocations: 4 kB / 489.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.356e-05/0.2757, allocations: 3.984 kB / 489.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.645e-06/0.2757, allocations: 0 / 489.3 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.528e-05/0.2758, allocations: 110.4 kB / 489.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.363e-06/0.2758, allocations: 0 / 489.4 MB, free: 10.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001966/0.276, allocations: 7.938 kB / 489.4 MB, free: 10.51 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 8.114e-05/0.276, allocations: 96.23 kB / 489.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.822e-05/0.2761, allocations: 15.98 kB / 489.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.2762, allocations: 4 kB / 489.5 MB, free: 10.39 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.887e-05/0.2762, allocations: 12.06 kB / 489.5 MB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002619/0.2765, allocations: 23.14 kB / 489.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002709/0.2767, allocations: 171.3 kB / 489.7 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.277, allocations: 0.6887 MB / 490.4 MB, free: 9.438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.956e-05/0.277, allocations: 11.59 kB / 490.4 MB, free: 9.426 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.277, allocations: 0 / 490.4 MB, free: 9.426 MB / 362.7 MB Notification: Performance of Templates: time 0.001541/0.2786, allocations: 0.6133 MB / 491 MB, free: 8.824 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SampleClocked/SampleClocked.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches