Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001321/0.001321, allocations: 177.6 kB / 8.045 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.452/1.452, allocations: 205.3 MB / 213.8 MB, free: 1.754 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.0008905/0.0008902, allocations: 95.88 kB / 261.8 MB, free: 1.688 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.07567/0.07567, allocations: 12.59 MB / 322.3 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.833e-05/1.845e-05, allocations: 4 kB / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2425, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1007/0.3432, allocations: 78.87 MB / 0.4963 GB, free: 3.363 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.3434, allocations: 71.95 kB / 0.4963 GB, free: 3.293 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006193/0.3496, allocations: 2.382 MB / 0.4987 GB, free: 0.9023 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3497, allocations: 0 / 0.4987 GB, free: 0.9023 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.349e-05/0.3497, allocations: 4 kB / 0.4987 GB, free: 0.8984 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0004567/0.3501, allocations: 410.3 kB / 0.4991 GB, free: 464 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.3502, allocations: 8.031 kB / 0.4991 GB, free: 456 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.32e-05/0.3502, allocations: 27.72 kB / 0.4991 GB, free: 428 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002792/0.3505, allocations: 235.7 kB / 0.4993 GB, free: 148 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.3506, allocations: 7.953 kB / 0.4993 GB, free: 140 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.784e-05/0.3506, allocations: 4 kB / 0.4993 GB, free: 136 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001118/0.3507, allocations: 48.36 kB / 0.4994 GB, free: 88 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000412/0.3511, allocations: 244.4 kB / 0.4996 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.3511, allocations: 0 / 0.4996 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.3512, allocations: 0 / 0.4996 GB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/0.3512, allocations: 4 kB / 0.4996 GB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004959/0.3517, allocations: 400 kB / 0.5 GB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003367/0.352, allocations: 254.2 kB / 0.5002 GB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001255/0.3522, allocations: 88.41 kB / 0.5003 GB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.3522, allocations: 4 kB / 0.5003 GB, free: 14.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.3522, allocations: 43.81 kB / 0.5004 GB, free: 14.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=18): time 1.373e-06/0.3522, allocations: 4 kB / 0.5004 GB, free: 14.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=18): time 0.0003164/0.3526, allocations: 121.4 kB / 0.5005 GB, free: 14.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000131/0.3527, allocations: 195.8 kB / 0.5007 GB, free: 14.54 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.3529, allocations: 158.2 kB / 0.5008 GB, free: 14.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.3529, allocations: 25.7 kB / 0.5009 GB, free: 14.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.782e-05/0.353, allocations: 100.7 kB / 0.5009 GB, free: 14.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.877e-05/0.353, allocations: 15.89 kB / 0.501 GB, free: 14.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.849e-06/0.353, allocations: 3.938 kB / 0.501 GB, free: 14.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.3532, allocations: 330.8 kB / 0.5013 GB, free: 13.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-05/0.3533, allocations: 16 kB / 0.5013 GB, free: 13.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.3534, allocations: 125.9 kB / 0.5014 GB, free: 13.7 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.91e-05/0.3535, allocations: 43.95 kB / 0.5015 GB, free: 13.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.3535, allocations: 0 / 0.5015 GB, free: 13.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002456/0.3537, allocations: 145.6 kB / 0.5016 GB, free: 13.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.3538, allocations: 12.06 kB / 0.5016 GB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.3538, allocations: 8 kB / 0.5016 GB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.973e-05/0.3538, allocations: 4 kB / 0.5016 GB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001388/0.354, allocations: 35.92 kB / 0.5017 GB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.564e-05/0.354, allocations: 15.94 kB / 0.5017 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.649e-05/0.3541, allocations: 11.91 kB / 0.5017 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.3541, allocations: 8 kB / 0.5017 GB, free: 13.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 0.0001141/0.3542, allocations: 116.9 kB / 0.5018 GB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001937/0.3544, allocations: 117.5 kB / 0.5019 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.841e-05/0.3545, allocations: 17.84 kB / 0.5019 GB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.054e-05/0.3545, allocations: 7.984 kB / 0.5019 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3545, allocations: 7.875 kB / 0.5019 GB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3545, allocations: 7.953 kB / 0.502 GB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002548/0.3548, allocations: 186 kB / 0.5021 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3548, allocations: 4 kB / 0.5021 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001449/0.3549, allocations: 47.91 kB / 0.5022 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.355, allocations: 4.031 kB / 0.5022 GB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.355, allocations: 4 kB / 0.5022 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.355, allocations: 0 / 0.5022 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.355, allocations: 4 kB / 0.5022 GB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003083/0.3553, allocations: 371.9 kB / 0.5025 GB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.522e-05/0.3554, allocations: 104.9 kB / 0.5026 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.3554, allocations: 4 kB / 0.5027 GB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.3556, allocations: 11.98 kB / 0.5027 GB, free: 12.3 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.659e-05/0.3556, allocations: 4 kB / 0.5027 GB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.3557, allocations: 15.98 kB / 0.5027 GB, free: 12.28 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001022/0.3558, allocations: 120.1 kB / 0.5028 GB, free: 12.16 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3558, allocations: 0 / 0.5028 GB, free: 12.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003266/0.3561, allocations: 20 kB / 0.5028 GB, free: 12.14 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (18): * Single equations (assignments): 18 * 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.0001201/0.3562, allocations: 95.19 kB / 0.5029 GB, free: 12.04 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001763/0.3564, allocations: 84.73 kB / 0.503 GB, free: 11.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3564, allocations: 4.125 kB / 0.503 GB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.027e-05/0.3564, allocations: 8 kB / 0.503 GB, free: 11.95 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004596/0.3569, allocations: 83.45 kB / 0.5031 GB, free: 11.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000398/0.3573, allocations: 212.6 kB / 0.5033 GB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.3576, allocations: 0.7282 MB / 0.504 GB, free: 10.87 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.344e-05/0.3577, allocations: 13.86 kB / 0.504 GB, free: 10.85 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.587e-05/0.3577, allocations: 15.44 kB / 0.504 GB, free: 10.84 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3577, allocations: 4 kB / 0.504 GB, free: 10.83 MB / 362.7 MB Notification: Performance of Templates: time 0.003804/0.3616, allocations: 1.46 MB / 0.5054 GB, free: 9.375 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.bits,hold.compDelay.resolution,hold.compDelay.shiftCounter,hold.computationalDelay,hold.hold1.y_start,hold.limited,hold.limiter.uMax,hold.limiter.uMin,hold.quantized,hold.resolution,hold.shiftCounter,hold.y,hold.yMax,hold.yMin,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