Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008892/0.0008892, allocations: 172.9 kB / 16.8 MB, free: 4.906 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.44/1.44, allocations: 205.4 MB / 223 MB, free: 9.02 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.0008195/0.0008195, allocations: 85.44 kB / 271.3 MB, free: 8.25 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.0851/0.0851, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004042/0.0004042, allocations: 12 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09265/0.09307, allocations: 50.37 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.4241, allocations: 78.37 MB / 0.5097 GB, free: 13.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.4244, allocations: 82.31 kB / 0.5098 GB, free: 13.46 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003707/0.4281, allocations: 1.439 MB / 0.5112 GB, free: 12.81 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4281, allocations: 3.938 kB / 0.5112 GB, free: 12.81 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.147e-06/0.4281, allocations: 0 / 0.5112 GB, free: 12.81 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.0003358/0.4285, allocations: 371.2 kB / 0.5116 GB, free: 12.43 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.345e-05/0.4285, allocations: 11.72 kB / 0.5116 GB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.4286, allocations: 12.78 kB / 0.5116 GB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.4288, allocations: 198.4 kB / 0.5118 GB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.315e-06/0.4288, allocations: 384 / 0.5118 GB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.4288, allocations: 4.344 kB / 0.5118 GB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002542/0.4291, allocations: 124.5 kB / 0.5119 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.121e-05/0.4291, allocations: 4.062 kB / 0.5119 GB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.4291, allocations: 3.938 kB / 0.5119 GB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.4291, allocations: 0 / 0.5119 GB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.644e-05/0.4292, allocations: 30.62 kB / 0.5119 GB, free: 12.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003135/0.4295, allocations: 278.6 kB / 0.5122 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.709e-05/0.4296, allocations: 77.03 kB / 0.5123 GB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/0.4297, allocations: 39.12 kB / 0.5123 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.4297, allocations: 0 / 0.5123 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.4297, allocations: 34.5 kB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.4298, allocations: 0 / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002516/0.43, allocations: 94.11 kB / 0.5124 GB, free: 11.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.4301, allocations: 106.5 kB / 0.5125 GB, free: 11.46 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.4302, allocations: 142.7 kB / 0.5127 GB, free: 11.35 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.4302, allocations: 29.08 kB / 0.5127 GB, free: 11.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.091e-05/0.4302, allocations: 91.61 kB / 0.5128 GB, free: 11.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.238e-05/0.4303, allocations: 7.844 kB / 0.5128 GB, free: 11.22 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.007e-06/0.4303, allocations: 4.188 kB / 0.5128 GB, free: 11.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.279e-05/0.4304, allocations: 318.4 kB / 0.5131 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.911e-05/0.4304, allocations: 15.58 kB / 0.5131 GB, free: 10.9 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.847e-05/0.4305, allocations: 31.12 kB / 0.5132 GB, free: 10.87 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.079e-05/0.4305, allocations: 54.27 kB / 0.5132 GB, free: 10.82 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.4306, allocations: 0 / 0.5132 GB, free: 10.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001187/0.4307, allocations: 75.55 kB / 0.5133 GB, free: 10.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.4307, allocations: 7.25 kB / 0.5133 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.4307, allocations: 0 / 0.5133 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.4307, allocations: 3.875 kB / 0.5133 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.808e-05/0.4308, allocations: 15.64 kB / 0.5133 GB, free: 10.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.477e-06/0.4308, allocations: 7.922 kB / 0.5133 GB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.915e-05/0.4309, allocations: 7.875 kB / 0.5133 GB, free: 10.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.4309, allocations: 0 / 0.5133 GB, free: 10.76 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.361e-05/0.431, allocations: 133.5 kB / 0.5135 GB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.837e-05/0.4311, allocations: 44.58 kB / 0.5135 GB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.4311, allocations: 15.08 kB / 0.5135 GB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.4311, allocations: 11.72 kB / 0.5135 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.4311, allocations: 0 / 0.5135 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.4311, allocations: 3.938 kB / 0.5135 GB, free: 10.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.4313, allocations: 177.7 kB / 0.5137 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.4313, allocations: 0 / 0.5137 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.609e-05/0.4314, allocations: 12.52 kB / 0.5137 GB, free: 10.37 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.584e-06/0.4314, allocations: 7.938 kB / 0.5137 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.762e-06/0.4314, allocations: 0 / 0.5137 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.4314, allocations: 0 / 0.5137 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.4314, allocations: 0 / 0.5137 GB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001568/0.4316, allocations: 191.2 kB / 0.5139 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.823e-05/0.4316, allocations: 92 kB / 0.514 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.4317, allocations: 0.875 kB / 0.514 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.396e-05/0.4317, allocations: 3.875 kB / 0.514 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.833e-05/0.4318, allocations: 7.828 kB / 0.514 GB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.927e-06/0.4318, allocations: 0 / 0.514 GB, free: 10.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.143e-05/0.4318, allocations: 109.9 kB / 0.5141 GB, free: 10.01 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4319, allocations: 0 / 0.5141 GB, free: 10.01 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002121/0.4321, allocations: 3.844 kB / 0.5141 GB, free: 10.01 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (4): * Single equations (assignments): 4 * 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 9.352e-05/0.4322, allocations: 98.73 kB / 0.5142 GB, free: 9.918 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.4323, allocations: 37.23 kB / 0.5142 GB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4323, allocations: 0 / 0.5142 GB, free: 9.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.357e-05/0.4324, allocations: 11.67 kB / 0.5142 GB, free: 9.906 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.4327, allocations: 34.81 kB / 0.5143 GB, free: 9.895 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.4331, allocations: 198.4 kB / 0.5145 GB, free: 9.715 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.4333, allocations: 0.6956 MB / 0.5151 GB, free: 9.008 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.608e-05/0.4333, allocations: 8.016 kB / 0.5152 GB, free: 9.004 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.128e-05/0.4334, allocations: 11.31 kB / 0.5152 GB, free: 9 MB / 330.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4334, allocations: 3.938 kB / 0.5152 GB, free: 8.996 MB / 330.7 MB Notification: Performance of Templates: time 0.002604/0.436, allocations: 0.5726 MB / 0.5157 GB, free: 8.711 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result: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