Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001031/0.001031, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.645/1.645, allocations: 205.2 MB / 219 MB, free: 9.199 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.0008296/0.0008297, allocations: 86.61 kB / 267.1 MB, free: 9.277 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.1015/0.1015, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.07e-05/4.073e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 50.38 MB / 436.4 MB, free: 19.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.5464, allocations: 78.14 MB / 0.5025 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.5467, allocations: 83.41 kB / 0.5025 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003304/0.55, allocations: 1.335 MB / 0.5038 GB, free: 11.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.55, allocations: 3.938 kB / 0.5038 GB, free: 11.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.55, allocations: 4 kB / 0.5038 GB, free: 11.5 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002961/0.5503, allocations: 349.7 kB / 0.5042 GB, free: 11.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.5504, allocations: 7.531 kB / 0.5042 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.5504, allocations: 8.625 kB / 0.5042 GB, free: 11.14 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.5506, allocations: 191.3 kB / 0.5044 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.5506, allocations: 7.453 kB / 0.5044 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.5506, allocations: 0 / 0.5044 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002034/0.5509, allocations: 91.19 kB / 0.5045 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.5509, allocations: 5.547 kB / 0.5045 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.5509, allocations: 0 / 0.5045 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.5509, allocations: 0 / 0.5045 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.441e-05/0.5509, allocations: 10.78 kB / 0.5045 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003221/0.5513, allocations: 276.2 kB / 0.5048 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.647e-05/0.5513, allocations: 39.94 kB / 0.5048 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.5514, allocations: 14.75 kB / 0.5048 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.5514, allocations: 0 / 0.5048 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.5514, allocations: 37.44 kB / 0.5048 GB, free: 10.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.5514, allocations: 0 / 0.5048 GB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002041/0.5516, allocations: 54.94 kB / 0.5049 GB, free: 10.42 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/0.5517, allocations: 80.92 kB / 0.505 GB, free: 10.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.426e-05/0.5518, allocations: 120.6 kB / 0.5051 GB, free: 10.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/0.5518, allocations: 29.52 kB / 0.5051 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.502e-05/0.5518, allocations: 83.58 kB / 0.5052 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.5519, allocations: 11.16 kB / 0.5052 GB, free: 10.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-06/0.5519, allocations: 0 / 0.5052 GB, free: 10.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.941e-05/0.5519, allocations: 317 kB / 0.5055 GB, free: 9.801 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.552, allocations: 3.375 kB / 0.5055 GB, free: 9.801 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.368e-05/0.552, allocations: 13.53 kB / 0.5055 GB, free: 9.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.942e-05/0.552, allocations: 14.48 kB / 0.5055 GB, free: 9.781 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.552, allocations: 4.062 kB / 0.5055 GB, free: 9.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.629e-05/0.5521, allocations: 41.33 kB / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.5521, allocations: 3.875 kB / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.5521, allocations: 6.469 kB / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.5521, allocations: 0 / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.389e-05/0.5522, allocations: 7.094 kB / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.523e-06/0.5522, allocations: 0 / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.549e-05/0.5522, allocations: 6.5 kB / 0.5056 GB, free: 9.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.5523, allocations: 3.875 kB / 0.5056 GB, free: 9.742 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 () * 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 4.645e-05/0.5523, allocations: 120.7 kB / 0.5057 GB, free: 9.617 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.58e-05/0.5524, allocations: 37.33 kB / 0.5058 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.124e-05/0.5524, allocations: 14.17 kB / 0.5058 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.5524, allocations: 3.844 kB / 0.5058 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.5524, allocations: 0 / 0.5058 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.5524, allocations: 0 / 0.5058 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000123/0.5526, allocations: 165.4 kB / 0.5059 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.5526, allocations: 3.953 kB / 0.5059 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.142e-05/0.5526, allocations: 11.72 kB / 0.5059 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.5526, allocations: 0 / 0.5059 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-06/0.5526, allocations: 2.344 kB / 0.5059 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.5526, allocations: 3.844 kB / 0.506 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5526, allocations: 0 / 0.506 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001034/0.5528, allocations: 163 kB / 0.5061 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.788e-05/0.5528, allocations: 96.88 kB / 0.5062 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.5528, allocations: 3.844 kB / 0.5062 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.273e-05/0.5529, allocations: 2.625 kB / 0.5062 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.5529, allocations: 3.844 kB / 0.5062 GB, free: 9.117 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.006e-06/0.553, allocations: 0 / 0.5062 GB, free: 9.117 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.968e-05/0.553, allocations: 107.2 kB / 0.5063 GB, free: 9.043 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.553, allocations: 0 / 0.5063 GB, free: 9.043 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002055/0.5532, allocations: 6.562 kB / 0.5063 GB, free: 9.043 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 () * 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 7.326e-05/0.5533, allocations: 101.2 kB / 0.5064 GB, free: 8.945 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.117e-05/0.5534, allocations: 15.38 kB / 0.5064 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.5534, allocations: 0 / 0.5064 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.475e-05/0.5534, allocations: 3.781 kB / 0.5064 GB, free: 8.941 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.5536, allocations: 20.44 kB / 0.5065 GB, free: 8.938 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002162/0.5539, allocations: 92.8 kB / 0.5065 GB, free: 8.855 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001617/0.554, allocations: 0.6963 MB / 0.5072 GB, free: 8.152 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.9e-05/0.5541, allocations: 7.938 kB / 0.5072 GB, free: 8.148 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.506e-05/0.5541, allocations: 7.438 kB / 0.5072 GB, free: 8.141 MB / 330.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5541, allocations: 3.938 kB / 0.5072 GB, free: 8.137 MB / 330.7 MB Notification: Performance of Templates: time 0.00238/0.5565, allocations: 429.2 kB / 0.5076 GB, free: 8.074 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches