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.001366/0.001366, allocations: 180.7 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.579/1.579, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009546/0.0009546, allocations: 86.88 kB / 270.3 MB, free: 13.36 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.07733/0.07733, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003781/0.0003781, allocations: 10.56 kB / 392 MB, free: 54.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1125, allocations: 50.37 MB / 442.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1145/0.2271, allocations: 78.51 MB / 0.5087 GB, free: 12.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.2273, allocations: 79.95 kB / 0.5087 GB, free: 12.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004292/0.2317, allocations: 1.562 MB / 0.5103 GB, free: 10.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.2317, allocations: 0 / 0.5103 GB, free: 10.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.38e-05/0.2317, allocations: 4 kB / 0.5103 GB, free: 10.68 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.0004919/0.2322, allocations: 371 kB / 0.5106 GB, free: 10.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.2323, allocations: 19.97 kB / 0.5106 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.765e-05/0.2323, allocations: 7.906 kB / 0.5107 GB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002497/0.2326, allocations: 191.3 kB / 0.5108 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.2326, allocations: 7.953 kB / 0.5108 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.907e-05/0.2326, allocations: 7.938 kB / 0.5108 GB, free: 10 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000335/0.233, allocations: 130.7 kB / 0.511 GB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.233, allocations: 0 / 0.511 GB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.233, allocations: 0 / 0.511 GB, free: 9.852 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.233, allocations: 4 kB / 0.511 GB, free: 9.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.992e-05/0.2331, allocations: 31.91 kB / 0.511 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005169/0.2336, allocations: 382.6 kB / 0.5114 GB, free: 9.383 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001419/0.2338, allocations: 94.36 kB / 0.5115 GB, free: 9.254 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.819e-05/0.2338, allocations: 8.062 kB / 0.5115 GB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.2339, allocations: 30.56 kB / 0.5115 GB, free: 9.207 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.2339, allocations: 0 / 0.5115 GB, free: 9.207 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003312/0.2342, allocations: 109.5 kB / 0.5116 GB, free: 9.094 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.2343, allocations: 136.5 kB / 0.5117 GB, free: 8.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.2344, allocations: 125.5 kB / 0.5119 GB, free: 8.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.805e-05/0.2345, allocations: 30.11 kB / 0.5119 GB, free: 8.766 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.133e-05/0.2345, allocations: 100.2 kB / 0.512 GB, free: 8.664 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.672e-05/0.2345, allocations: 7.844 kB / 0.512 GB, free: 8.656 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.869e-06/0.2346, allocations: 4 kB / 0.512 GB, free: 8.652 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.2347, allocations: 316.3 kB / 0.5123 GB, free: 8.336 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.744e-05/0.2347, allocations: 15.98 kB / 0.5123 GB, free: 8.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.37e-05/0.2348, allocations: 48.28 kB / 0.5124 GB, free: 8.258 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.359e-05/0.2349, allocations: 16 kB / 0.5124 GB, free: 8.242 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.2349, allocations: 3.953 kB / 0.5124 GB, free: 8.238 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002049/0.2351, allocations: 89.45 kB / 0.5125 GB, free: 8.145 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.2351, allocations: 4 kB / 0.5125 GB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.2351, allocations: 4 kB / 0.5125 GB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.2352, allocations: 3.984 kB / 0.5125 GB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.254e-05/0.2353, allocations: 12 kB / 0.5125 GB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.2353, allocations: 3.938 kB / 0.5125 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.702e-05/0.2353, allocations: 4 kB / 0.5125 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.2353, allocations: 11.98 kB / 0.5125 GB, free: 8.102 MB / 362.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 () * 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 8.96e-05/0.2354, allocations: 129.7 kB / 0.5126 GB, free: 7.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.931e-05/0.2355, allocations: 61.53 kB / 0.5127 GB, free: 7.898 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.528e-05/0.2356, allocations: 11.88 kB / 0.5127 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2356, allocations: 0 / 0.5127 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2356, allocations: 0 / 0.5127 GB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.239e-06/0.2356, allocations: 4 kB / 0.5127 GB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002217/0.2359, allocations: 177.6 kB / 0.5129 GB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.2359, allocations: 128 / 0.5129 GB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.5e-05/0.2359, allocations: 31.94 kB / 0.5129 GB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.236, allocations: 0 / 0.5129 GB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.236, allocations: 4 kB / 0.5129 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.236, allocations: 0 / 0.5129 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.236, allocations: 0 / 0.5129 GB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.2363, allocations: 309.5 kB / 0.5132 GB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.161e-05/0.2364, allocations: 96.94 kB / 0.5133 GB, free: 7.168 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.2364, allocations: 3.984 kB / 0.5133 GB, free: 7.164 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001204/0.2365, allocations: 8 kB / 0.5133 GB, free: 7.156 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.101e-05/0.2366, allocations: 4 kB / 0.5133 GB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.544e-06/0.2366, allocations: 4 kB / 0.5133 GB, free: 7.148 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.727e-05/0.2367, allocations: 108.6 kB / 0.5134 GB, free: 7.043 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2367, allocations: 7.938 kB / 0.5134 GB, free: 7.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000247/0.2369, allocations: 7.953 kB / 0.5134 GB, free: 7.027 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.0001397/0.2371, allocations: 99.25 kB / 0.5135 GB, free: 6.918 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000183/0.2373, allocations: 52.09 kB / 0.5136 GB, free: 6.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2373, allocations: 0 / 0.5136 GB, free: 6.867 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.623e-05/0.2373, allocations: 11.94 kB / 0.5136 GB, free: 6.855 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003384/0.2377, allocations: 35.97 kB / 0.5136 GB, free: 6.82 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005078/0.2382, allocations: 224.2 kB / 0.5138 GB, free: 6.559 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.2387, allocations: 0.6965 MB / 0.5145 GB, free: 5.836 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.731e-05/0.2388, allocations: 11.78 kB / 0.5145 GB, free: 5.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.19e-05/0.2388, allocations: 15.42 kB / 0.5145 GB, free: 5.809 MB / 362.7 MB Notification: Performance of SimCode: time 5.62e-07/0.2388, allocations: 0 / 0.5145 GB, free: 5.809 MB / 362.7 MB Notification: Performance of Templates: time 0.003351/0.2422, allocations: 0.6216 MB / 0.5151 GB, free: 5.191 MB / 362.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