Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001421/0.001421, allocations: 163.3 kB / 16.8 MB, free: 5.027 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.496/1.496, allocations: 205.4 MB / 223 MB, free: 8.941 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.0007794/0.0007795, allocations: 84.8 kB / 271.3 MB, free: 8.246 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.08607/0.08607, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004306/0.0004306, allocations: 20 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09914, allocations: 50.38 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3404/0.4395, allocations: 78.47 MB / 0.5098 GB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/0.4398, allocations: 79.48 kB / 0.5099 GB, free: 13.5 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003754/0.4436, allocations: 1.561 MB / 0.5114 GB, free: 12.78 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4436, allocations: 0 / 0.5114 GB, free: 12.78 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.217e-05/0.4436, allocations: 3.844 kB / 0.5114 GB, free: 12.78 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003038/0.4439, allocations: 379.3 kB / 0.5118 GB, free: 12.39 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.444, allocations: 7.375 kB / 0.5118 GB, free: 12.39 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.536e-05/0.444, allocations: 23.73 kB / 0.5118 GB, free: 12.38 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.4442, allocations: 211.1 kB / 0.512 GB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.4442, allocations: 4.094 kB / 0.512 GB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.221e-05/0.4443, allocations: 4.219 kB / 0.512 GB, free: 12.15 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.4445, allocations: 134.5 kB / 0.5122 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.4445, allocations: 4.125 kB / 0.5122 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.4445, allocations: 10.97 kB / 0.5122 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.4446, allocations: 0 / 0.5122 GB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.063e-05/0.4446, allocations: 29.92 kB / 0.5122 GB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002984/0.4449, allocations: 287.4 kB / 0.5125 GB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.554e-05/0.4451, allocations: 100.1 kB / 0.5126 GB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.45e-05/0.4451, allocations: 46.33 kB / 0.5126 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.616e-05/0.4452, allocations: 7.875 kB / 0.5126 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.4452, allocations: 42.05 kB / 0.5127 GB, free: 11.53 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.243e-06/0.4452, allocations: 0 / 0.5127 GB, free: 11.53 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.000245/0.4454, allocations: 106.5 kB / 0.5128 GB, free: 11.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.122e-05/0.4455, allocations: 136.2 kB / 0.5129 GB, free: 11.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.922e-05/0.4456, allocations: 147.3 kB / 0.513 GB, free: 11.2 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.034e-05/0.4456, allocations: 29.52 kB / 0.5131 GB, free: 11.17 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.766e-05/0.4457, allocations: 95.09 kB / 0.5132 GB, free: 11.08 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.206e-05/0.4457, allocations: 3.906 kB / 0.5132 GB, free: 11.08 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-06/0.4457, allocations: 7.594 kB / 0.5132 GB, free: 11.08 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.314e-05/0.4457, allocations: 314.8 kB / 0.5135 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.005e-05/0.4458, allocations: 14.78 kB / 0.5135 GB, free: 10.76 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.642e-05/0.4458, allocations: 52.11 kB / 0.5135 GB, free: 10.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.861e-05/0.4459, allocations: 73.23 kB / 0.5136 GB, free: 10.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.446, allocations: 3.938 kB / 0.5136 GB, free: 10.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001259/0.4461, allocations: 91.98 kB / 0.5137 GB, free: 10.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.4461, allocations: 4.75 kB / 0.5137 GB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.4461, allocations: 7.891 kB / 0.5137 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.4461, allocations: 0 / 0.5137 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.558e-05/0.4462, allocations: 18.3 kB / 0.5137 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.4462, allocations: 5.062 kB / 0.5137 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.189e-05/0.4463, allocations: 11.66 kB / 0.5137 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.4463, allocations: 0 / 0.5137 GB, free: 10.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.442e-05/0.4464, allocations: 134.2 kB / 0.5139 GB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.567e-05/0.4464, allocations: 63.78 kB / 0.5139 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.4465, allocations: 18.34 kB / 0.514 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.4465, allocations: 3.812 kB / 0.514 GB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.4465, allocations: 4.094 kB / 0.514 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-06/0.4465, allocations: 0 / 0.514 GB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.4466, allocations: 187.2 kB / 0.5141 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.4467, allocations: 0 / 0.5141 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.08e-05/0.4467, allocations: 17.98 kB / 0.5142 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.4467, allocations: 0 / 0.5142 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.4467, allocations: 0 / 0.5142 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.4467, allocations: 3.906 kB / 0.5142 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.4468, allocations: 0 / 0.5142 GB, free: 10.18 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001852/0.4469, allocations: 207.6 kB / 0.5144 GB, free: 9.996 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.987e-05/0.447, allocations: 96.53 kB / 0.5144 GB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.447, allocations: 3.984 kB / 0.5145 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-05/0.4471, allocations: 3.844 kB / 0.5145 GB, free: 9.891 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.001e-05/0.4471, allocations: 4 kB / 0.5145 GB, free: 9.887 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.4471, allocations: 7.594 kB / 0.5145 GB, free: 9.887 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.057e-05/0.4472, allocations: 115.8 kB / 0.5146 GB, free: 9.801 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4472, allocations: 0 / 0.5146 GB, free: 9.801 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.4474, allocations: 7.844 kB / 0.5146 GB, free: 9.801 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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.46e-05/0.4475, allocations: 98.56 kB / 0.5147 GB, free: 9.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001393/0.4476, allocations: 49.66 kB / 0.5147 GB, free: 9.695 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4477, allocations: 7.5 kB / 0.5147 GB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.173e-05/0.4477, allocations: 7.688 kB / 0.5147 GB, free: 9.691 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003567/0.4481, allocations: 47.62 kB / 0.5148 GB, free: 9.672 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000314/0.4484, allocations: 224.2 kB / 0.515 GB, free: 9.477 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001276/0.4485, allocations: 0.6997 MB / 0.5157 GB, free: 8.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.247e-05/0.4486, allocations: 4.672 kB / 0.5157 GB, free: 8.766 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.503e-05/0.4486, allocations: 11.28 kB / 0.5157 GB, free: 8.758 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4486, allocations: 0 / 0.5157 GB, free: 8.758 MB / 330.7 MB Notification: Performance of Templates: time 0.002452/0.4511, allocations: 0.7607 MB / 0.5164 GB, free: 8.379 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time