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.0009398/0.0009395, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007471/0.0007471, allocations: 94.61 kB / 261.8 MB, free: 1.672 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.06288/0.06288, allocations: 12.59 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.491e-05/1.493e-05, allocations: 0 / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2031/0.2031, allocations: 50.39 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09392/0.2971, allocations: 77.67 MB / 0.4951 GB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002108/0.2973, allocations: 75.95 kB / 0.4952 GB, free: 4.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004053/0.3014, allocations: 1.549 MB / 0.4967 GB, free: 2.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3014, allocations: 7.938 kB / 0.4967 GB, free: 2.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.3015, allocations: 0 / 0.4967 GB, free: 2.93 MB / 346.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.0003441/0.3018, allocations: 362.2 kB / 0.497 GB, free: 2.531 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.3019, allocations: 12.03 kB / 0.4971 GB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.898e-05/0.3019, allocations: 11.91 kB / 0.4971 GB, free: 2.508 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002122/0.3021, allocations: 197.3 kB / 0.4973 GB, free: 2.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.3022, allocations: 7.953 kB / 0.4973 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.3022, allocations: 0 / 0.4973 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.177e-05/0.3023, allocations: 27.94 kB / 0.4973 GB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002266/0.3025, allocations: 122.8 kB / 0.4974 GB, free: 2.098 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.3025, allocations: 3.938 kB / 0.4974 GB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.3025, allocations: 0 / 0.4974 GB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.3026, allocations: 4 kB / 0.4974 GB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000344/0.3029, allocations: 268 kB / 0.4977 GB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.522e-05/0.303, allocations: 86.44 kB / 0.4978 GB, free: 1.66 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.626e-05/0.3031, allocations: 39.42 kB / 0.4978 GB, free: 1.609 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3031, allocations: 8 kB / 0.4978 GB, free: 1.602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.3031, allocations: 34.56 kB / 0.4978 GB, free: 1.559 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.3031, allocations: 0 / 0.4978 GB, free: 1.559 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001771/0.3033, allocations: 69.44 kB / 0.4979 GB, free: 1.484 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.627e-05/0.3034, allocations: 144.6 kB / 0.498 GB, free: 1.312 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.3035, allocations: 129.6 kB / 0.4982 GB, free: 1.172 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.3036, allocations: 25.7 kB / 0.4982 GB, free: 1.141 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.95e-05/0.3036, allocations: 84.33 kB / 0.4983 GB, free: 1.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.57e-05/0.3036, allocations: 8 kB / 0.4983 GB, free: 1.043 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.416e-06/0.3036, allocations: 0 / 0.4983 GB, free: 1.043 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3037, allocations: 314.8 kB / 0.4986 GB, free: 0.7266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.706e-05/0.3038, allocations: 8 kB / 0.4986 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.428e-05/0.3038, allocations: 45.16 kB / 0.4986 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.559e-05/0.3038, allocations: 11.98 kB / 0.4986 GB, free: 0.6445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3038, allocations: 0 / 0.4986 GB, free: 0.6445 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.385e-05/0.304, allocations: 77.42 kB / 0.4987 GB, free: 0.5625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.304, allocations: 8 kB / 0.4987 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.304, allocations: 0 / 0.4987 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.304, allocations: 4 kB / 0.4987 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.958e-05/0.3041, allocations: 12.11 kB / 0.4987 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.774e-06/0.3041, allocations: 7.938 kB / 0.4987 GB, free: 0.5312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.704e-05/0.3042, allocations: 8.188 kB / 0.4988 GB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.3042, allocations: 8 kB / 0.4988 GB, free: 0.5156 MB / 346.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 () * 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 8.851e-05/0.3043, allocations: 104.9 kB / 0.4989 GB, free: 416 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.455e-05/0.3044, allocations: 69.47 kB / 0.4989 GB, free: 340 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.3044, allocations: 11.97 kB / 0.4989 GB, free: 332 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.3044, allocations: 0 / 0.4989 GB, free: 332 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3044, allocations: 7.984 kB / 0.4989 GB, free: 324 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.3045, allocations: 0 / 0.4989 GB, free: 324 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001573/0.3046, allocations: 158.1 kB / 0.4991 GB, free: 128 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3046, allocations: 4.094 kB / 0.4991 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.3047, allocations: 15.98 kB / 0.4991 GB, free: 108 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.3047, allocations: 0 / 0.4991 GB, free: 108 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.3047, allocations: 7.953 kB / 0.4991 GB, free: 100 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3047, allocations: 4 kB / 0.4991 GB, free: 96 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.3047, allocations: 3.984 kB / 0.4991 GB, free: 92 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001952/0.3049, allocations: 220.2 kB / 0.4993 GB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.718e-05/0.305, allocations: 97 kB / 0.4994 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.305, allocations: 0 / 0.4994 GB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.436e-05/0.3051, allocations: 4 kB / 0.4994 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.3052, allocations: 3.938 kB / 0.4994 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.3052, allocations: 8 kB / 0.4994 GB, free: 15.7 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.019e-05/0.3053, allocations: 123.8 kB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3053, allocations: 0 / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.3055, allocations: 4 kB / 0.4996 GB, free: 15.58 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 () * 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 9.45e-05/0.3056, allocations: 99.19 kB / 0.4997 GB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.765e-05/0.3057, allocations: 20 kB / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.3057, allocations: 3.938 kB / 0.4997 GB, free: 15.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.605e-05/0.3057, allocations: 12.38 kB / 0.4997 GB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.306, allocations: 31.36 kB / 0.4997 GB, free: 15.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002694/0.3063, allocations: 134.7 kB / 0.4999 GB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.3066, allocations: 0.7002 MB / 0.5005 GB, free: 14.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.907e-05/0.3066, allocations: 9.016 kB / 0.5005 GB, free: 14.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.538e-05/0.3067, allocations: 11.44 kB / 0.5006 GB, free: 14.5 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3067, allocations: 0 / 0.5006 GB, free: 14.5 MB / 362.7 MB Notification: Performance of Templates: time 0.002598/0.3093, allocations: 0.6938 MB / 0.5012 GB, free: 13.81 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