Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.74/1.74, allocations: 205.2 MB / 219 MB, free: 9.203 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.001032/0.001033, allocations: 86.42 kB / 267.1 MB, free: 9.285 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.09099/0.09099, allocations: 12.58 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.924e-05/3.926e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1142, allocations: 50.36 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4101/0.5243, allocations: 78.42 MB / 0.5027 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002578/0.5247, allocations: 84.09 kB / 0.5028 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003919/0.5286, allocations: 1.538 MB / 0.5043 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.5286, allocations: 3.75 kB / 0.5043 GB, free: 11.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.228e-06/0.5287, allocations: 0 / 0.5043 GB, free: 11.58 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.0002951/0.529, allocations: 360 kB / 0.5047 GB, free: 11.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.529, allocations: 15.5 kB / 0.5047 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.529, allocations: 11.66 kB / 0.5047 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.5292, allocations: 196.7 kB / 0.5049 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.5292, allocations: 3.953 kB / 0.5049 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.5292, allocations: 3.875 kB / 0.5049 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002278/0.5295, allocations: 127.5 kB / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.5295, allocations: 0 / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.5295, allocations: 0 / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.5295, allocations: 3.875 kB / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.079e-05/0.5296, allocations: 19.34 kB / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003443/0.5299, allocations: 382 kB / 0.5054 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.406e-05/0.53, allocations: 89.62 kB / 0.5055 GB, free: 10.42 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.291e-05/0.5301, allocations: 42.09 kB / 0.5055 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.5301, allocations: 7.234 kB / 0.5055 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.5301, allocations: 34.5 kB / 0.5055 GB, free: 10.34 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.202e-06/0.5301, allocations: 0 / 0.5055 GB, free: 10.34 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001841/0.5303, allocations: 74.97 kB / 0.5056 GB, free: 10.3 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.032e-05/0.5304, allocations: 134.7 kB / 0.5057 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.003e-05/0.5305, allocations: 130.3 kB / 0.5059 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.658e-06/0.5305, allocations: 29.64 kB / 0.5059 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.882e-05/0.5305, allocations: 94.73 kB / 0.506 GB, free: 9.934 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.371e-05/0.5305, allocations: 8.031 kB / 0.506 GB, free: 9.926 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.988e-06/0.5305, allocations: 3.188 kB / 0.506 GB, free: 9.926 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.765e-05/0.5306, allocations: 317.7 kB / 0.5063 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.897e-05/0.5306, allocations: 7.281 kB / 0.5063 GB, free: 9.613 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.926e-05/0.5307, allocations: 35.58 kB / 0.5063 GB, free: 9.574 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.211e-05/0.5307, allocations: 22.14 kB / 0.5064 GB, free: 9.566 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.5307, allocations: 0 / 0.5064 GB, free: 9.566 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.954e-05/0.5308, allocations: 75.33 kB / 0.5064 GB, free: 9.523 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.5308, allocations: 3.812 kB / 0.5064 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.5308, allocations: 3.844 kB / 0.5064 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.5308, allocations: 0 / 0.5064 GB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.97e-05/0.5309, allocations: 18.62 kB / 0.5065 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.531, allocations: 0 / 0.5065 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.536e-05/0.531, allocations: 9.703 kB / 0.5065 GB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.531, allocations: 4.516 kB / 0.5065 GB, free: 9.52 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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.423e-05/0.5311, allocations: 120.4 kB / 0.5066 GB, free: 9.398 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.5312, allocations: 53.88 kB / 0.5066 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.5312, allocations: 12.89 kB / 0.5067 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.5312, allocations: 3.844 kB / 0.5067 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.5312, allocations: 7.062 kB / 0.5067 GB, free: 9.355 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.5312, allocations: 3.938 kB / 0.5067 GB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.5314, allocations: 176.6 kB / 0.5068 GB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.5314, allocations: 7.828 kB / 0.5068 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.243e-05/0.5315, allocations: 14.64 kB / 0.5069 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.5315, allocations: 0 / 0.5069 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.5315, allocations: 0 / 0.5069 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.866e-06/0.5315, allocations: 6.531 kB / 0.5069 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.5315, allocations: 0 / 0.5069 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001307/0.5317, allocations: 299.3 kB / 0.5071 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.033e-05/0.5317, allocations: 91.7 kB / 0.5072 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.735e-05/0.5317, allocations: 5.984 kB / 0.5072 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.757e-05/0.5318, allocations: 8.156 kB / 0.5073 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.085e-05/0.5319, allocations: 3.906 kB / 0.5073 GB, free: 8.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.5319, allocations: 7.938 kB / 0.5073 GB, free: 8.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.143e-05/0.5319, allocations: 124.3 kB / 0.5074 GB, free: 8.676 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.532, allocations: 0 / 0.5074 GB, free: 8.676 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002302/0.5322, allocations: 7.656 kB / 0.5074 GB, free: 8.676 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.9e-05/0.5323, allocations: 98.28 kB / 0.5075 GB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001197/0.5324, allocations: 37.14 kB / 0.5075 GB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.5324, allocations: 0 / 0.5075 GB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.986e-05/0.5324, allocations: 7.75 kB / 0.5075 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.5327, allocations: 29.7 kB / 0.5076 GB, free: 8.578 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002445/0.533, allocations: 139.4 kB / 0.5077 GB, free: 8.461 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001512/0.5331, allocations: 0.6958 MB / 0.5084 GB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.252e-05/0.5332, allocations: 7.953 kB / 0.5084 GB, free: 7.762 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.459e-05/0.5332, allocations: 14.23 kB / 0.5084 GB, free: 7.754 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5332, allocations: 0 / 0.5084 GB, free: 7.754 MB / 330.7 MB Notification: Performance of Templates: time 0.002415/0.5356, allocations: 0.6281 MB / 0.509 GB, free: 7.684 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.y,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time