Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001539/0.001539, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.98/1.98, allocations: 205.2 MB / 219.4 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001081, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09788/0.09788, allocations: 12.61 MB / 328.2 MB, free: 11.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.189e-05/4.222e-05, allocations: 3.984 kB / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2937/0.2938, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.44, allocations: 78.25 MB / 0.5025 GB, free: 15.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.4404, allocations: 83.89 kB / 0.5026 GB, free: 15.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00883/0.4492, allocations: 1.977 MB / 0.5045 GB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.4493, allocations: 0 / 0.5045 GB, free: 13.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.4493, allocations: 0 / 0.5045 GB, free: 13.72 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004851/0.4498, allocations: 350.4 kB / 0.5049 GB, free: 13.34 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/0.4499, allocations: 8.031 kB / 0.5049 GB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.236e-05/0.4499, allocations: 7.906 kB / 0.5049 GB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.4502, allocations: 198.7 kB / 0.5051 GB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.4502, allocations: 8 kB / 0.5051 GB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.4503, allocations: 4 kB / 0.5051 GB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003022/0.4506, allocations: 97.05 kB / 0.5052 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.4506, allocations: 0 / 0.5052 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.4506, allocations: 0 / 0.5052 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.4506, allocations: 0 / 0.5052 GB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.89e-05/0.4507, allocations: 8 kB / 0.5052 GB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005067/0.4512, allocations: 277.6 kB / 0.5055 GB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.111e-05/0.4513, allocations: 45.38 kB / 0.5055 GB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.791e-05/0.4514, allocations: 9.719 kB / 0.5055 GB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.4514, allocations: 15.98 kB / 0.5055 GB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.4515, allocations: 38.55 kB / 0.5056 GB, free: 12.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 2.855e-06/0.4515, allocations: 0 / 0.5056 GB, free: 12.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002186/0.4517, allocations: 41.7 kB / 0.5056 GB, free: 12.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.4518, allocations: 85.05 kB / 0.5057 GB, free: 12.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001798/0.452, allocations: 133.3 kB / 0.5058 GB, free: 12.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.452, allocations: 25.7 kB / 0.5058 GB, free: 12.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.504e-05/0.4521, allocations: 158.5 kB / 0.506 GB, free: 12.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.4522, allocations: 4 kB / 0.506 GB, free: 12.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.4522, allocations: 0 / 0.506 GB, free: 12.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.4523, allocations: 314.8 kB / 0.5063 GB, free: 11.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.522e-05/0.4524, allocations: 4 kB / 0.5063 GB, free: 11.69 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.854e-05/0.4524, allocations: 13.72 kB / 0.5063 GB, free: 11.67 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.408e-05/0.4525, allocations: 12.06 kB / 0.5063 GB, free: 11.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4525, allocations: 3.938 kB / 0.5063 GB, free: 11.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001326/0.4527, allocations: 45.62 kB / 0.5064 GB, free: 11.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.4527, allocations: 4 kB / 0.5064 GB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.4527, allocations: 0 / 0.5064 GB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.4527, allocations: 0 / 0.5064 GB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.4529, allocations: 11.98 kB / 0.5064 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.4529, allocations: 64 / 0.5064 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.015e-05/0.453, allocations: 11.94 kB / 0.5064 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.453, allocations: 4 kB / 0.5064 GB, free: 11.57 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 () * 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.558e-05/0.4531, allocations: 108.7 kB / 0.5065 GB, free: 11.46 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.894e-05/0.4532, allocations: 45.53 kB / 0.5065 GB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.4533, allocations: 15.64 kB / 0.5066 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.4533, allocations: 0 / 0.5066 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.4533, allocations: 0 / 0.5066 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4533, allocations: 0 / 0.5066 GB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002313/0.4535, allocations: 177.6 kB / 0.5067 GB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4536, allocations: 0 / 0.5067 GB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.382e-05/0.4536, allocations: 4 kB / 0.5067 GB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.726e-06/0.4537, allocations: 7.984 kB / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.4537, allocations: 0 / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.4537, allocations: 0 / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.4537, allocations: 0 / 0.5067 GB, free: 11.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/0.4539, allocations: 169.9 kB / 0.5069 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.021e-05/0.454, allocations: 93 kB / 0.507 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.454, allocations: 0 / 0.507 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001026/0.4542, allocations: 4 kB / 0.507 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.4542, allocations: 0 / 0.507 GB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.4542, allocations: 0 / 0.507 GB, free: 10.86 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001163/0.4543, allocations: 108 kB / 0.5071 GB, free: 10.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.4544, allocations: 32 / 0.5071 GB, free: 10.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002799/0.4546, allocations: 11.95 kB / 0.5071 GB, free: 10.74 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 () * 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 0.0001182/0.4548, allocations: 95.25 kB / 0.5072 GB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001094/0.4549, allocations: 15.92 kB / 0.5072 GB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4549, allocations: 3.938 kB / 0.5072 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.455, allocations: 8 kB / 0.5072 GB, free: 10.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.4553, allocations: 15.97 kB / 0.5072 GB, free: 10.59 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003591/0.4557, allocations: 126.9 kB / 0.5074 GB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.456, allocations: 0.6965 MB / 0.508 GB, free: 9.711 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.097e-05/0.456, allocations: 11.44 kB / 0.5081 GB, free: 9.703 MB / 362.7 MB Notification: Performance of SimCode: time 1.382e-06/0.456, allocations: 0 / 0.5081 GB, free: 9.703 MB / 362.7 MB Notification: Performance of Templates: time 0.002751/0.4588, allocations: 0.6989 MB / 0.5087 GB, free: 9.008 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches