Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 200.7 kB / 18.11 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.517/1.517, allocations: 226.5 MB / 245.4 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00094/0.0009401, allocations: 91.53 kB / 297.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002491/0.0002492, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2596/0.2599, allocations: 51.3 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09191/0.3519, allocations: 77.05 MB / 486.4 MB, free: 14.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.3522, allocations: 80.7 kB / 486.5 MB, free: 14.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002497/0.3547, allocations: 1.043 MB / 487.5 MB, free: 13.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3547, allocations: 0.5938 kB / 487.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.245e-06/0.3547, allocations: 0 / 487.6 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.000345/0.3551, allocations: 349.5 kB / 487.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.3551, allocations: 12.03 kB / 487.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.291e-05/0.3552, allocations: 8.844 kB / 487.9 MB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.3554, allocations: 176.3 kB / 488.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.3554, allocations: 7.656 kB / 488.1 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.3554, allocations: 4.312 kB / 488.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002113/0.3556, allocations: 89.66 kB / 488.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.3556, allocations: 192 / 488.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.3557, allocations: 14.38 kB / 488.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.3557, allocations: 0 / 488.2 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.165e-05/0.3557, allocations: 15.92 kB / 488.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003454/0.3561, allocations: 257.8 kB / 488.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.503e-05/0.3562, allocations: 49.09 kB / 488.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.908e-05/0.3562, allocations: 17.77 kB / 488.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.3562, allocations: 0 / 488.5 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.3563, allocations: 34.56 kB / 488.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.3563, allocations: 0 / 488.6 MB, free: 12.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001907/0.3565, allocations: 61.53 kB / 488.6 MB, free: 12.05 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/0.3565, allocations: 81.11 kB / 488.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.3567, allocations: 126.1 kB / 488.8 MB, free: 11.82 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.3567, allocations: 29.7 kB / 488.9 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.073e-05/0.3567, allocations: 100 kB / 489 MB, free: 11.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.795e-06/0.3567, allocations: 3.938 kB / 489 MB, free: 11.68 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.994e-06/0.3568, allocations: 0 / 489 MB, free: 11.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.3569, allocations: 314.8 kB / 489.3 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.495e-05/0.3569, allocations: 7.938 kB / 489.3 MB, free: 11.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.7e-05/0.3569, allocations: 21.7 kB / 489.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.759e-05/0.357, allocations: 25.78 kB / 489.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.357, allocations: 0 / 489.3 MB, free: 11.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.896e-05/0.3571, allocations: 61.47 kB / 489.4 MB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.286e-05/0.3571, allocations: 4 kB / 489.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.3571, allocations: 0 / 489.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.3571, allocations: 4.062 kB / 489.4 MB, free: 11.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.46e-05/0.3571, allocations: 4 kB / 489.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.3572, allocations: 0 / 489.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.248e-05/0.3572, allocations: 0 / 489.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.3572, allocations: 0 / 489.4 MB, free: 11.21 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 7.545e-05/0.3573, allocations: 127.3 kB / 489.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.072e-05/0.3573, allocations: 33.64 kB / 489.5 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.3574, allocations: 11.52 kB / 489.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.3574, allocations: 4.031 kB / 489.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3574, allocations: 0 / 489.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3574, allocations: 0 / 489.6 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001499/0.3575, allocations: 165.6 kB / 489.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3576, allocations: 4 kB / 489.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.07e-06/0.3576, allocations: 0 / 489.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.3576, allocations: 0 / 489.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.3576, allocations: 3.984 kB / 489.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3576, allocations: 0 / 489.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.3576, allocations: 4 kB / 489.7 MB, free: 10.8 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.3577, allocations: 164.2 kB / 489.9 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.755e-05/0.3578, allocations: 89 kB / 490 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.3578, allocations: 0 / 490 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.868e-05/0.3579, allocations: 0 / 490 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.865e-05/0.3579, allocations: 4 kB / 490 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.3579, allocations: 0 / 490 MB, free: 10.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.369e-05/0.358, allocations: 106.5 kB / 490.1 MB, free: 10.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.358, allocations: 7.938 kB / 490.1 MB, free: 10.4 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002091/0.3582, allocations: 0 / 490.1 MB, free: 10.4 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.81e-05/0.3583, allocations: 99.23 kB / 490.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.444e-05/0.3584, allocations: 19.94 kB / 490.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3584, allocations: 0 / 490.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.504e-05/0.3584, allocations: 12.11 kB / 490.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002875/0.3587, allocations: 18.38 kB / 490.2 MB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002752/0.359, allocations: 149.6 kB / 490.4 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002286/0.3593, allocations: 0.6887 MB / 491.1 MB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.392e-05/0.3593, allocations: 16.14 kB / 491.1 MB, free: 9.344 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.888e-05/0.3593, allocations: 7.438 kB / 491.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3593, allocations: 0 / 491.1 MB, free: 9.336 MB / 362.7 MB Notification: Performance of Templates: time 0.002031/0.3614, allocations: 392.8 kB / 491.5 MB, free: 8.957 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Clocked.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches