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.001407/0.001407, allocations: 176.7 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 1.422/1.422, allocations: 205.3 MB / 213.8 MB, free: 1.734 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.0008383/0.0008383, allocations: 90.61 kB / 261.8 MB, free: 1.672 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.07344/0.07344, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.31e-05, allocations: 4 kB / 378.9 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2616, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3688, allocations: 77.76 MB / 0.4952 GB, free: 4.488 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002466/0.3691, allocations: 75.95 kB / 0.4953 GB, free: 4.414 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004303/0.3734, allocations: 1.544 MB / 0.4968 GB, free: 2.867 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3734, allocations: 0 / 0.4968 GB, free: 2.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.3734, allocations: 0 / 0.4968 GB, free: 2.867 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004303/0.3738, allocations: 358.4 kB / 0.4971 GB, free: 2.473 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.3739, allocations: 12.03 kB / 0.4971 GB, free: 2.461 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.172e-05/0.374, allocations: 19.75 kB / 0.4971 GB, free: 2.441 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002269/0.3742, allocations: 194.8 kB / 0.4973 GB, free: 2.211 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.3742, allocations: 3.953 kB / 0.4973 GB, free: 2.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.3742, allocations: 4 kB / 0.4973 GB, free: 2.203 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.242e-05/0.3743, allocations: 19.94 kB / 0.4973 GB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.3746, allocations: 118.8 kB / 0.4975 GB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3746, allocations: 0 / 0.4975 GB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3746, allocations: 0 / 0.4975 GB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3746, allocations: 0 / 0.4975 GB, free: 2.043 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000429/0.375, allocations: 351.3 kB / 0.4978 GB, free: 1.652 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.3752, allocations: 86.36 kB / 0.4979 GB, free: 1.531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.317e-05/0.3752, allocations: 35.56 kB / 0.4979 GB, free: 1.484 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.3753, allocations: 4 kB / 0.4979 GB, free: 1.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3753, allocations: 38.56 kB / 0.4979 GB, free: 1.434 MB / 346.7 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.3753, allocations: 0 / 0.4979 GB, free: 1.434 MB / 346.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002101/0.3755, allocations: 65.53 kB / 0.498 GB, free: 1.363 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.447e-05/0.3756, allocations: 140.6 kB / 0.4981 GB, free: 1.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001181/0.3757, allocations: 125.5 kB / 0.4983 GB, free: 1.066 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.3758, allocations: 25.7 kB / 0.4983 GB, free: 1.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.484e-05/0.3758, allocations: 92.27 kB / 0.4984 GB, free: 0.9414 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.064e-05/0.3758, allocations: 11.89 kB / 0.4984 GB, free: 0.9297 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.797e-06/0.3759, allocations: 0 / 0.4984 GB, free: 0.9297 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.376, allocations: 314.8 kB / 0.4987 GB, free: 0.6133 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.65e-05/0.376, allocations: 4 kB / 0.4987 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.869e-05/0.3761, allocations: 44.3 kB / 0.4987 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.841e-05/0.3761, allocations: 7.984 kB / 0.4987 GB, free: 0.543 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3761, allocations: 4 kB / 0.4987 GB, free: 0.5391 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001082/0.3762, allocations: 77.42 kB / 0.4988 GB, free: 468 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3763, allocations: 8 kB / 0.4988 GB, free: 460 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3763, allocations: 3.938 kB / 0.4988 GB, free: 456 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.3763, allocations: 0 / 0.4988 GB, free: 456 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.958e-05/0.3764, allocations: 15.98 kB / 0.4988 GB, free: 440 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.222e-05/0.3764, allocations: 7.984 kB / 0.4989 GB, free: 432 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.425e-05/0.3765, allocations: 3.984 kB / 0.4989 GB, free: 428 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.3765, allocations: 4 kB / 0.4989 GB, free: 424 kB / 346.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 7.54e-05/0.3766, allocations: 117 kB / 0.499 GB, free: 300 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.775e-05/0.3766, allocations: 53.55 kB / 0.499 GB, free: 240 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.461e-05/0.3767, allocations: 11.97 kB / 0.499 GB, free: 228 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3767, allocations: 4 kB / 0.499 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3767, allocations: 0 / 0.499 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/0.3767, allocations: 3.984 kB / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001931/0.3769, allocations: 154.2 kB / 0.4992 GB, free: 28 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3769, allocations: 8 kB / 0.4992 GB, free: 20 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.532e-05/0.377, allocations: 15.98 kB / 0.4992 GB, free: 4 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.729e-05/0.377, allocations: 8.047 kB / 0.4992 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.377, allocations: 3.953 kB / 0.4992 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.377, allocations: 0 / 0.4992 GB, free: 15.99 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3771, allocations: 4 kB / 0.4992 GB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001842/0.3772, allocations: 286.7 kB / 0.4995 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.3773, allocations: 92.98 kB / 0.4996 GB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.937e-05/0.3773, allocations: 4 kB / 0.4996 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.792e-05/0.3775, allocations: 8 kB / 0.4996 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.3775, allocations: 3.938 kB / 0.4996 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.3775, allocations: 4 kB / 0.4996 GB, free: 15.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.55e-05/0.3776, allocations: 112.5 kB / 0.4997 GB, free: 15.43 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3776, allocations: 3.938 kB / 0.4997 GB, free: 15.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002904/0.3779, allocations: 8 kB / 0.4997 GB, free: 15.42 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 () * 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.0001016/0.378, allocations: 95.23 kB / 0.4998 GB, free: 15.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.644e-05/0.3781, allocations: 27.94 kB / 0.4998 GB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-06/0.3781, allocations: 0 / 0.4998 GB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.719e-05/0.3781, allocations: 4 kB / 0.4998 GB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.3784, allocations: 40.47 kB / 0.4999 GB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002724/0.3787, allocations: 126.9 kB / 0.5 GB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.379, allocations: 0.7001 MB / 0.5007 GB, free: 14.36 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.84e-05/0.3791, allocations: 11.77 kB / 0.5007 GB, free: 14.35 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.726e-05/0.3791, allocations: 15.38 kB / 0.5007 GB, free: 14.34 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3791, allocations: 4 kB / 0.5007 GB, free: 14.33 MB / 362.7 MB Notification: Performance of Templates: time 0.002686/0.3818, allocations: 0.5885 MB / 0.5013 GB, free: 13.75 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