Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 180.9 kB / 16.39 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008421/0.0008421, allocations: 103.7 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003604, allocations: 11.94 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2399, allocations: 50.41 MB / 401.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08773/0.3277, allocations: 77.07 MB / 478.6 MB, free: 3.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001919/0.3279, allocations: 79.95 kB / 478.6 MB, free: 3.352 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00534/0.3333, allocations: 2.109 MB / 480.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.3333, allocations: 0 / 480.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.3333, allocations: 7.938 kB / 480.8 MB, free: 1.246 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003478/0.3337, allocations: 367.1 kB / 481.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.3337, allocations: 12.03 kB / 481.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.498e-05/0.3337, allocations: 11.86 kB / 481.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000186/0.3339, allocations: 197.8 kB / 481.3 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-06/0.3339, allocations: 0 / 481.3 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.238e-05/0.334, allocations: 7.938 kB / 481.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002383/0.3342, allocations: 120.9 kB / 481.5 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.3342, allocations: 0 / 481.5 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.148e-06/0.3342, allocations: 3.953 kB / 481.5 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.3342, allocations: 4 kB / 481.5 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.166e-05/0.3343, allocations: 15.98 kB / 481.5 MB, free: 428 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003234/0.3347, allocations: 265.8 kB / 481.7 MB, free: 108 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.874e-05/0.3348, allocations: 49.14 kB / 481.8 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.671e-05/0.3348, allocations: 4.062 kB / 481.8 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.3348, allocations: 34.52 kB / 481.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.3348, allocations: 4 kB / 481.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002394/0.3351, allocations: 77.52 kB / 481.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.918e-05/0.3351, allocations: 81.05 kB / 482 MB, free: 15.81 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.965e-05/0.3352, allocations: 129.2 kB / 482.1 MB, free: 15.67 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.261e-05/0.3353, allocations: 25.95 kB / 482.1 MB, free: 15.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.702e-05/0.3353, allocations: 92.14 kB / 482.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.05e-05/0.3353, allocations: 0 / 482.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.3353, allocations: 0 / 482.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.3354, allocations: 318.8 kB / 482.5 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.842e-05/0.3355, allocations: 8 kB / 482.6 MB, free: 15.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.692e-05/0.3355, allocations: 25.7 kB / 482.6 MB, free: 15.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.092e-05/0.3356, allocations: 12 kB / 482.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3356, allocations: 0 / 482.6 MB, free: 15.18 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001214/0.3357, allocations: 65.52 kB / 482.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.487e-05/0.3357, allocations: 11.95 kB / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.3357, allocations: 0 / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.308e-06/0.3358, allocations: 4.125 kB / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.129e-05/0.3358, allocations: 4 kB / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.3358, allocations: 4 kB / 482.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.435e-05/0.3359, allocations: 9.234 kB / 482.7 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.3359, allocations: 7.984 kB / 482.7 MB, free: 15.07 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: 0 () * 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.664e-05/0.336, allocations: 109.8 kB / 482.8 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.192e-05/0.336, allocations: 41.61 kB / 482.8 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.277e-05/0.3361, allocations: 15.84 kB / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.3361, allocations: 7.938 kB / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.3361, allocations: 0 / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.3361, allocations: 0 / 482.9 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.3363, allocations: 165.7 kB / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3363, allocations: 0 / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-05/0.3363, allocations: 8 kB / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.3363, allocations: 0 / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.192e-06/0.3363, allocations: 0 / 483 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.3363, allocations: 7.938 kB / 483 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3364, allocations: 4 kB / 483 MB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001537/0.3365, allocations: 166.1 kB / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.743e-05/0.3366, allocations: 93 kB / 483.3 MB, free: 14.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.631e-05/0.3366, allocations: 7.953 kB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.216e-05/0.3367, allocations: 4.031 kB / 483.3 MB, free: 14.34 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.928e-05/0.3367, allocations: 15.86 kB / 483.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.3367, allocations: 0 / 483.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.082e-05/0.3368, allocations: 106.2 kB / 483.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3368, allocations: 0 / 483.4 MB, free: 14.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001943/0.337, allocations: 4 kB / 483.4 MB, free: 14.21 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: 0 () * 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.483e-05/0.3371, allocations: 99.23 kB / 483.5 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001129/0.3372, allocations: 27.98 kB / 483.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.3372, allocations: 0 / 483.6 MB, free: 14.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.736e-05/0.3373, allocations: 15.94 kB / 483.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.3375, allocations: 12.02 kB / 483.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002916/0.3378, allocations: 181.9 kB / 483.8 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.338, allocations: 0.6887 MB / 484.5 MB, free: 13.12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.041e-05/0.3381, allocations: 11.98 kB / 484.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.192e-05/0.3381, allocations: 7.438 kB / 484.5 MB, free: 13.11 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3381, allocations: 4 kB / 484.5 MB, free: 13.1 MB / 362.7 MB Notification: Performance of Templates: time 0.00212/0.3402, allocations: 466.6 kB / 484.9 MB, free: 12.66 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches