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.001474/0.001474, allocations: 177.6 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.132/2.132, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.00112/0.00112, allocations: 94.02 kB / 261.8 MB, free: 13.43 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.1081/0.1081, allocations: 12.58 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.77e-05/1.765e-05, allocations: 4 kB / 378.9 MB, free: 75.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09304, allocations: 50.37 MB / 429.3 MB, free: 24.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5018/0.5949, allocations: 77.69 MB / 0.4951 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002711/0.5953, allocations: 78.23 kB / 0.4952 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005804/0.6011, allocations: 1.55 MB / 0.4967 GB, free: 11.6 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6012, allocations: 3.938 kB / 0.4967 GB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.238e-05/0.6012, allocations: 0 / 0.4967 GB, free: 11.59 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.0003684/0.6016, allocations: 369.7 kB / 0.4971 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.6016, allocations: 7.75 kB / 0.4971 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.83e-05/0.6017, allocations: 7.781 kB / 0.4971 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.6019, allocations: 200.8 kB / 0.4973 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.252e-05/0.6019, allocations: 3.953 kB / 0.4973 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.708e-05/0.6019, allocations: 3.844 kB / 0.4973 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001013/0.6021, allocations: 25.78 kB / 0.4973 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002461/0.6023, allocations: 123.1 kB / 0.4974 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.6023, allocations: 0 / 0.4974 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.6024, allocations: 3.938 kB / 0.4974 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.6024, allocations: 3.844 kB / 0.4974 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003694/0.6028, allocations: 273.2 kB / 0.4977 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001012/0.6029, allocations: 75.19 kB / 0.4978 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.157e-05/0.6029, allocations: 45.66 kB / 0.4978 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.603, allocations: 6.328 kB / 0.4978 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.603, allocations: 34.25 kB / 0.4978 GB, free: 10.48 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.964e-06/0.603, allocations: 0 / 0.4978 GB, free: 10.48 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002249/0.6033, allocations: 76.16 kB / 0.4979 GB, free: 10.44 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.983e-05/0.6033, allocations: 136.4 kB / 0.498 GB, free: 10.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.6035, allocations: 124.5 kB / 0.4982 GB, free: 10.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.212e-05/0.6035, allocations: 25.7 kB / 0.4982 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.973e-05/0.6035, allocations: 94.25 kB / 0.4983 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.554e-05/0.6036, allocations: 3.906 kB / 0.4983 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-06/0.6036, allocations: 4.125 kB / 0.4983 GB, free: 10.06 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.6036, allocations: 318 kB / 0.4986 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.364e-05/0.6037, allocations: 6.562 kB / 0.4986 GB, free: 9.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.139e-05/0.6037, allocations: 42.47 kB / 0.4986 GB, free: 9.703 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.695e-05/0.6038, allocations: 13.95 kB / 0.4986 GB, free: 9.699 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.6038, allocations: 0 / 0.4986 GB, free: 9.699 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001259/0.6039, allocations: 73.83 kB / 0.4987 GB, free: 9.652 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.6039, allocations: 5.781 kB / 0.4987 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.403e-06/0.604, allocations: 0 / 0.4987 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.604, allocations: 7.781 kB / 0.4987 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.6041, allocations: 17.73 kB / 0.4987 GB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.914e-06/0.6042, allocations: 3.938 kB / 0.4987 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.6043, allocations: 6.656 kB / 0.4988 GB, free: 9.641 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.6043, allocations: 7.531 kB / 0.4988 GB, free: 9.641 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 () * 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 5.867e-05/0.6044, allocations: 111 kB / 0.4989 GB, free: 9.531 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.6045, allocations: 59.03 kB / 0.4989 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/0.6045, allocations: 14.36 kB / 0.4989 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.6045, allocations: 8 kB / 0.4989 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.6046, allocations: 0 / 0.4989 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.6046, allocations: 3.812 kB / 0.4989 GB, free: 9.484 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.6048, allocations: 154.2 kB / 0.4991 GB, free: 9.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.6048, allocations: 7.922 kB / 0.4991 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001102/0.6049, allocations: 19.45 kB / 0.4991 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.888e-06/0.6049, allocations: 0 / 0.4991 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/0.6049, allocations: 7.766 kB / 0.4991 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.6049, allocations: 0 / 0.4991 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/0.6049, allocations: 0 / 0.4991 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.6051, allocations: 224.8 kB / 0.4993 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.899e-05/0.6052, allocations: 93.47 kB / 0.4994 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.106e-05/0.6052, allocations: 7.812 kB / 0.4994 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001168/0.6054, allocations: 3.969 kB / 0.4994 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.6054, allocations: 2.062 kB / 0.4994 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.6054, allocations: 3.875 kB / 0.4994 GB, free: 8.996 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.161e-05/0.6055, allocations: 113 kB / 0.4996 GB, free: 8.914 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6055, allocations: 3.938 kB / 0.4996 GB, free: 8.914 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003274/0.6059, allocations: 3.812 kB / 0.4996 GB, free: 8.914 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 () * 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.183e-05/0.606, allocations: 102 kB / 0.4997 GB, free: 8.816 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001233/0.6061, allocations: 29.36 kB / 0.4997 GB, free: 8.812 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.6061, allocations: 3.938 kB / 0.4997 GB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.158e-05/0.6062, allocations: 3.844 kB / 0.4997 GB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.6066, allocations: 32.66 kB / 0.4997 GB, free: 8.805 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003358/0.6069, allocations: 131.5 kB / 0.4999 GB, free: 8.699 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001623/0.6071, allocations: 0.7058 MB / 0.5005 GB, free: 8 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.089e-05/0.6072, allocations: 11.03 kB / 0.5006 GB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.461e-05/0.6072, allocations: 11.34 kB / 0.5006 GB, free: 7.988 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6072, allocations: 0 / 0.5006 GB, free: 7.988 MB / 330.7 MB Notification: Performance of Templates: time 0.003721/0.6109, allocations: 0.7005 MB / 0.5012 GB, free: 7.922 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