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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001686/0.001686, allocations: 184.1 kB / 7.845 MB, free: 2.234 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.186/1.186, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0009568/0.0009567, allocations: 91.56 kB / 261.5 MB, free: 13.54 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.06777/0.06777, allocations: 12.58 MB / 322 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.444e-06/7.624e-06, allocations: 4 kB / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08411/0.08413, allocations: 50.37 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2607/0.3449, allocations: 77.61 MB / 0.4945 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.3451, allocations: 74.05 kB / 0.4946 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003894/0.3491, allocations: 1.239 MB / 0.4958 GB, free: 11.64 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3491, allocations: 0 / 0.4958 GB, free: 11.64 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.0002997/0.3494, allocations: 374.3 kB / 0.4961 GB, free: 11.27 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3494, allocations: 7.594 kB / 0.4961 GB, free: 11.27 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.533e-05/0.3495, allocations: 16.39 kB / 0.4962 GB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001848/0.3497, allocations: 194.8 kB / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.3497, allocations: 3.75 kB / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.3497, allocations: 0 / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.04e-05/0.3498, allocations: 24.44 kB / 0.4964 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.35, allocations: 129.8 kB / 0.4965 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.35, allocations: 0 / 0.4965 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.092e-05/0.35, allocations: 0 / 0.4965 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.35, allocations: 8.625 kB / 0.4965 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003073/0.3504, allocations: 266.5 kB / 0.4968 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.981e-05/0.3504, allocations: 90.52 kB / 0.4969 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.477e-05/0.3505, allocations: 35.8 kB / 0.4969 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.3505, allocations: 8.484 kB / 0.4969 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.756e-05/0.3505, allocations: 31.27 kB / 0.4969 GB, free: 10.52 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.142e-06/0.3506, allocations: 4 kB / 0.4969 GB, free: 10.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001777/0.3507, allocations: 72.66 kB / 0.497 GB, free: 10.47 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.3508, allocations: 133.1 kB / 0.4971 GB, free: 10.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.282e-05/0.3509, allocations: 132.7 kB / 0.4972 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.498e-06/0.3509, allocations: 25.7 kB / 0.4973 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.521e-05/0.3509, allocations: 93.55 kB / 0.4974 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.351, allocations: 0.6562 kB / 0.4974 GB, free: 10.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.351, allocations: 0 / 0.4974 GB, free: 10.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.121e-05/0.351, allocations: 321.7 kB / 0.4977 GB, free: 9.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.601e-05/0.351, allocations: 7.656 kB / 0.4977 GB, free: 9.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.415e-05/0.3511, allocations: 37.36 kB / 0.4977 GB, free: 9.738 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.603e-05/0.3511, allocations: 21.41 kB / 0.4977 GB, free: 9.73 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3511, allocations: 0 / 0.4977 GB, free: 9.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.923e-05/0.3512, allocations: 68.77 kB / 0.4978 GB, free: 9.688 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.049e-05/0.3512, allocations: 3.844 kB / 0.4978 GB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.3512, allocations: 7.938 kB / 0.4978 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.3513, allocations: 0.6094 kB / 0.4978 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.089e-05/0.3513, allocations: 13.67 kB / 0.4978 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.3514, allocations: 4.797 kB / 0.4978 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.139e-05/0.3514, allocations: 4.531 kB / 0.4978 GB, free: 9.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.3514, allocations: 0 / 0.4978 GB, free: 9.684 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 4.677e-05/0.3515, allocations: 113.5 kB / 0.4979 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/0.3516, allocations: 71.56 kB / 0.498 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/0.3516, allocations: 9.391 kB / 0.498 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.3516, allocations: 0 / 0.498 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3516, allocations: 0 / 0.498 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.3516, allocations: 4.547 kB / 0.498 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.3518, allocations: 158.5 kB / 0.4982 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.3518, allocations: 0 / 0.4982 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.244e-05/0.3519, allocations: 21.59 kB / 0.4982 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.3519, allocations: 4.562 kB / 0.4982 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.3519, allocations: 5.312 kB / 0.4982 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3519, allocations: 0 / 0.4982 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.3519, allocations: 3.812 kB / 0.4982 GB, free: 9.348 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001446/0.352, allocations: 224.5 kB / 0.4984 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.3521, allocations: 93.16 kB / 0.4985 GB, free: 9.031 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.877e-05/0.3521, allocations: 8.734 kB / 0.4985 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.184e-05/0.3522, allocations: 4.875 kB / 0.4985 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.035e-05/0.3523, allocations: 3.938 kB / 0.4985 GB, free: 9.023 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.58e-06/0.3523, allocations: 4.734 kB / 0.4985 GB, free: 9.023 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.273e-05/0.3523, allocations: 114.8 kB / 0.4986 GB, free: 8.941 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002587/0.3526, allocations: 11.53 kB / 0.4987 GB, free: 8.938 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 7.765e-05/0.3527, allocations: 95.55 kB / 0.4987 GB, free: 8.848 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.183e-05/0.3528, allocations: 32.08 kB / 0.4988 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.3528, allocations: 0 / 0.4988 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.307e-05/0.3528, allocations: 0.9375 kB / 0.4988 GB, free: 8.844 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002851/0.3531, allocations: 37.89 kB / 0.4988 GB, free: 8.84 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002905/0.3534, allocations: 130.1 kB / 0.4989 GB, free: 8.734 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.3536, allocations: 0.7178 MB / 0.4996 GB, free: 8.027 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3536, allocations: 0 / 0.4996 GB, free: 8.027 MB / 330.7 MB Notification: Performance of Templates: time 0.002886/0.3565, allocations: 0.742 MB / 0.5004 GB, free: 7.961 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/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