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.001089/0.001089, allocations: 180.2 kB / 15.8 MB, free: 6.34 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.605/1.605, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0009236/0.0009234, allocations: 86.88 kB / 270.3 MB, free: 13.34 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.07307/0.07307, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000463/0.0004631, allocations: 12.69 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09821, allocations: 50.36 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.2112, allocations: 78.43 MB / 0.5086 GB, free: 12.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.2115, allocations: 79.95 kB / 0.5087 GB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005033/0.2166, allocations: 1.562 MB / 0.5102 GB, free: 10.76 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2167, allocations: 3.938 kB / 0.5102 GB, free: 10.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.153e-05/0.2167, allocations: 4 kB / 0.5102 GB, free: 10.75 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005334/0.2172, allocations: 382.9 kB / 0.5106 GB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.2173, allocations: 16.03 kB / 0.5106 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.2174, allocations: 11.81 kB / 0.5106 GB, free: 10.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002913/0.2177, allocations: 190.9 kB / 0.5108 GB, free: 10.08 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.2177, allocations: 7.953 kB / 0.5108 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.024e-05/0.2177, allocations: 11.94 kB / 0.5108 GB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.2181, allocations: 142.7 kB / 0.5109 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.2181, allocations: 0 / 0.5109 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.2181, allocations: 0 / 0.5109 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.2181, allocations: 0 / 0.5109 GB, free: 9.895 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.646e-05/0.2182, allocations: 35.91 kB / 0.511 GB, free: 9.859 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004474/0.2187, allocations: 295.5 kB / 0.5112 GB, free: 9.512 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001347/0.2188, allocations: 94.42 kB / 0.5113 GB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.2189, allocations: 3.938 kB / 0.5113 GB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.2189, allocations: 38.62 kB / 0.5114 GB, free: 9.332 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.2189, allocations: 0 / 0.5114 GB, free: 9.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003191/0.2192, allocations: 109.7 kB / 0.5115 GB, free: 9.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.489e-05/0.2193, allocations: 136.5 kB / 0.5116 GB, free: 9.055 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.2195, allocations: 133.5 kB / 0.5117 GB, free: 8.914 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.2195, allocations: 25.7 kB / 0.5118 GB, free: 8.883 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.2195, allocations: 104.4 kB / 0.5119 GB, free: 8.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.58e-05/0.2196, allocations: 4 kB / 0.5119 GB, free: 8.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.2196, allocations: 0 / 0.5119 GB, free: 8.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.2197, allocations: 324.3 kB / 0.5122 GB, free: 8.445 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.394e-05/0.2198, allocations: 8 kB / 0.5122 GB, free: 8.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.317e-05/0.2198, allocations: 61.08 kB / 0.5122 GB, free: 8.359 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/0.2199, allocations: 19.98 kB / 0.5123 GB, free: 8.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.2199, allocations: 3.953 kB / 0.5123 GB, free: 8.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001672/0.2201, allocations: 93.45 kB / 0.5124 GB, free: 8.238 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.2201, allocations: 11.94 kB / 0.5124 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2201, allocations: 0 / 0.5124 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.2201, allocations: 4 kB / 0.5124 GB, free: 8.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.669e-05/0.2202, allocations: 8 kB / 0.5124 GB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.307e-05/0.2202, allocations: 11.92 kB / 0.5124 GB, free: 8.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.011e-05/0.2203, allocations: 4.188 kB / 0.5124 GB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.2203, allocations: 8 kB / 0.5124 GB, free: 8.191 MB / 362.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 0.0001043/0.2204, allocations: 117.6 kB / 0.5125 GB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001067/0.2205, allocations: 69.48 kB / 0.5126 GB, free: 7.992 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.875e-05/0.2206, allocations: 15.86 kB / 0.5126 GB, free: 7.977 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.2206, allocations: 7.984 kB / 0.5126 GB, free: 7.969 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.2206, allocations: 3.938 kB / 0.5126 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2206, allocations: 0 / 0.5126 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.2208, allocations: 185.6 kB / 0.5128 GB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2208, allocations: 4 kB / 0.5128 GB, free: 7.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.431e-05/0.2209, allocations: 15.95 kB / 0.5128 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.898e-06/0.2209, allocations: 0 / 0.5128 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.221, allocations: 3.984 kB / 0.5128 GB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5e-06/0.221, allocations: 7.938 kB / 0.5128 GB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.221, allocations: 0 / 0.5128 GB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.2212, allocations: 231.1 kB / 0.513 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.582e-05/0.2213, allocations: 93 kB / 0.5131 GB, free: 7.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.826e-05/0.2213, allocations: 4 kB / 0.5131 GB, free: 7.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.115e-05/0.2214, allocations: 8 kB / 0.5131 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.2215, allocations: 7.984 kB / 0.5131 GB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.2215, allocations: 4 kB / 0.5131 GB, free: 7.301 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.851e-05/0.2216, allocations: 115.1 kB / 0.5133 GB, free: 7.188 MB / 362.7 MB Notification: Performance of sort global known variables: time 3e-07/0.2216, allocations: 0 / 0.5133 GB, free: 7.188 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002274/0.2218, allocations: 7.938 kB / 0.5133 GB, free: 7.18 MB / 362.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 0.0001128/0.2219, allocations: 107.1 kB / 0.5134 GB, free: 7.066 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001605/0.2221, allocations: 43.92 kB / 0.5134 GB, free: 7.023 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/0.2221, allocations: 4 kB / 0.5134 GB, free: 7.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.943e-05/0.2221, allocations: 11.98 kB / 0.5134 GB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003335/0.2225, allocations: 47.72 kB / 0.5135 GB, free: 6.965 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000421/0.2229, allocations: 224.3 kB / 0.5137 GB, free: 6.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.2233, allocations: 0.7093 MB / 0.5144 GB, free: 5.973 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.913e-05/0.2233, allocations: 4.859 kB / 0.5144 GB, free: 5.969 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.387e-05/0.2234, allocations: 19.3 kB / 0.5144 GB, free: 5.949 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2234, allocations: 0 / 0.5144 GB, free: 5.949 MB / 362.7 MB Notification: Performance of Templates: time 0.003508/0.2269, allocations: 0.7356 MB / 0.5151 GB, free: 5.219 MB / 362.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/jenkins/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