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.001533/0.001533, allocations: 185.1 kB / 16.44 MB, free: 5.672 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.887/1.887, allocations: 205.4 MB / 222.6 MB, free: 9.133 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.001148/0.001147, allocations: 85.61 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1021/0.1021, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005333/0.0005333, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08687, allocations: 50.37 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4105/0.4974, allocations: 78.34 MB / 0.5085 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.4977, allocations: 77.75 kB / 0.5086 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00742/0.5051, allocations: 1.99 MB / 0.5105 GB, free: 12.23 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5052, allocations: 0 / 0.5105 GB, free: 12.23 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.5052, allocations: 3.844 kB / 0.5105 GB, free: 12.23 MB / 330.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.000394/0.5056, allocations: 369.7 kB / 0.5109 GB, free: 11.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.5057, allocations: 11.66 kB / 0.5109 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.162e-05/0.5057, allocations: 11.75 kB / 0.5109 GB, free: 11.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.5059, allocations: 197.6 kB / 0.5111 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.5059, allocations: 0 / 0.5111 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.506, allocations: 3.844 kB / 0.5111 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.5063, allocations: 106.8 kB / 0.5112 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.5063, allocations: 4 kB / 0.5112 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.066e-05/0.5063, allocations: 0 / 0.5112 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.5063, allocations: 0 / 0.5112 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001217/0.5065, allocations: 26.98 kB / 0.5112 GB, free: 11.53 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/0.5068, allocations: 275.5 kB / 0.5115 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001038/0.5069, allocations: 40.56 kB / 0.5115 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.507, allocations: 3.812 kB / 0.5115 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.066e-05/0.507, allocations: 38.48 kB / 0.5115 GB, free: 11.14 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.423e-06/0.507, allocations: 0 / 0.5115 GB, free: 11.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.000312/0.5073, allocations: 70.31 kB / 0.5116 GB, free: 11.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.5074, allocations: 84.39 kB / 0.5117 GB, free: 11 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.5075, allocations: 122.7 kB / 0.5118 GB, free: 10.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.054e-05/0.5075, allocations: 29.69 kB / 0.5118 GB, free: 10.86 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.283e-05/0.5076, allocations: 165.3 kB / 0.512 GB, free: 10.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.5076, allocations: 10.53 kB / 0.512 GB, free: 10.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.462e-06/0.5076, allocations: 0 / 0.512 GB, free: 10.7 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.976e-05/0.5077, allocations: 318.7 kB / 0.5123 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.243e-05/0.5078, allocations: 10.72 kB / 0.5123 GB, free: 10.38 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.546e-05/0.5079, allocations: 21.45 kB / 0.5123 GB, free: 10.36 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.734e-05/0.5079, allocations: 14.69 kB / 0.5123 GB, free: 10.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.508, allocations: 0 / 0.5123 GB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001651/0.5081, allocations: 60.17 kB / 0.5124 GB, free: 10.31 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.5082, allocations: 3.812 kB / 0.5124 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.5082, allocations: 0 / 0.5124 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.5082, allocations: 0 / 0.5124 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.221e-05/0.5083, allocations: 11.81 kB / 0.5124 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.5083, allocations: 0 / 0.5124 GB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.657e-05/0.5084, allocations: 7.953 kB / 0.5124 GB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.098e-06/0.5084, allocations: 0 / 0.5124 GB, free: 10.3 MB / 330.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 7.403e-05/0.5085, allocations: 120.2 kB / 0.5125 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.829e-05/0.5086, allocations: 48.56 kB / 0.5126 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.478e-05/0.5086, allocations: 11.12 kB / 0.5126 GB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.5086, allocations: 3.938 kB / 0.5126 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5087, allocations: 4.031 kB / 0.5126 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.5087, allocations: 0 / 0.5126 GB, free: 10.13 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001585/0.5088, allocations: 172 kB / 0.5128 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.5088, allocations: 0 / 0.5128 GB, free: 9.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.748e-05/0.5089, allocations: 11.77 kB / 0.5128 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.5089, allocations: 0 / 0.5128 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.509, allocations: 0 / 0.5128 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.509, allocations: 0 / 0.5128 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.509, allocations: 0 / 0.5128 GB, free: 9.926 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.5092, allocations: 176.4 kB / 0.5129 GB, free: 9.758 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.631e-05/0.5093, allocations: 91.97 kB / 0.513 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/0.5093, allocations: 3.812 kB / 0.513 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.411e-05/0.5094, allocations: 3.984 kB / 0.513 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.537e-05/0.5094, allocations: 7.938 kB / 0.5131 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.5095, allocations: 0 / 0.5131 GB, free: 9.648 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.617e-05/0.5095, allocations: 108.7 kB / 0.5132 GB, free: 9.566 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5095, allocations: 0 / 0.5132 GB, free: 9.566 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000281/0.5098, allocations: 3.906 kB / 0.5132 GB, free: 9.566 MB / 330.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.228e-05/0.5099, allocations: 98.7 kB / 0.5133 GB, free: 9.477 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.5101, allocations: 30.98 kB / 0.5133 GB, free: 9.465 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.5101, allocations: 3.938 kB / 0.5133 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.304e-05/0.5102, allocations: 11.53 kB / 0.5133 GB, free: 9.461 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003155/0.5105, allocations: 13.41 kB / 0.5133 GB, free: 9.457 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003678/0.5109, allocations: 208.3 kB / 0.5135 GB, free: 9.254 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.5111, allocations: 0.696 MB / 0.5142 GB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.224e-05/0.5111, allocations: 7.438 kB / 0.5142 GB, free: 8.543 MB / 330.7 MB Notification: Performance of SimCode: time 6.01e-07/0.5111, allocations: 0 / 0.5142 GB, free: 8.543 MB / 330.7 MB Notification: Performance of Templates: time 0.002305/0.5135, allocations: 0.7222 MB / 0.5149 GB, free: 8.184 MB / 330.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