Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|Time|sample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample") [: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.001519/0.001519, allocations: 187 kB / 7.846 MB, free: 2.496 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.203/1.203, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0008827/0.0008825, allocations: 92.39 kB / 261.5 MB, free: 13.53 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.07818/0.07818, allocations: 12.58 MB / 322 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.356e-06/8.386e-06, allocations: 4 kB / 378.4 MB, free: 75.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09131/0.09134, allocations: 50.37 MB / 428.8 MB, free: 25.25 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2963/0.3877, allocations: 77.49 MB / 0.4944 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001917/0.3879, allocations: 79.25 kB / 0.4945 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003476/0.3914, allocations: 1.117 MB / 0.4956 GB, free: 11.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.3914, allocations: 3.938 kB / 0.4956 GB, free: 11.55 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002817/0.3917, allocations: 346.1 kB / 0.4959 GB, free: 11.2 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.3918, allocations: 11.5 kB / 0.4959 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.437e-05/0.3918, allocations: 12.86 kB / 0.4959 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000156/0.392, allocations: 187.5 kB / 0.4961 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.392, allocations: 3.844 kB / 0.4961 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.392, allocations: 0 / 0.4961 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.625e-05/0.3921, allocations: 21.11 kB / 0.4961 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001839/0.3923, allocations: 98.84 kB / 0.4962 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.3923, allocations: 0 / 0.4962 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.297e-06/0.3923, allocations: 0 / 0.4962 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.3923, allocations: 7.719 kB / 0.4962 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002798/0.3926, allocations: 250.3 kB / 0.4965 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.101e-05/0.3927, allocations: 33.06 kB / 0.4965 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.447e-05/0.3927, allocations: 17.34 kB / 0.4965 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.78e-05/0.3927, allocations: 0 / 0.4965 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.588e-05/0.3927, allocations: 39.75 kB / 0.4965 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 9.52e-07/0.3927, allocations: 3.938 kB / 0.4965 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.000155/0.3929, allocations: 54.67 kB / 0.4966 GB, free: 10.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.068e-05/0.3929, allocations: 77.11 kB / 0.4967 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.786e-05/0.393, allocations: 131.2 kB / 0.4968 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.3931, allocations: 25.7 kB / 0.4968 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.126e-05/0.3931, allocations: 89.62 kB / 0.4969 GB, free: 10.2 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.069e-05/0.3931, allocations: 0 / 0.4969 GB, free: 10.2 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.3931, allocations: 0 / 0.4969 GB, free: 10.2 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.3932, allocations: 319.8 kB / 0.4972 GB, free: 9.883 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.267e-05/0.3932, allocations: 4.906 kB / 0.4972 GB, free: 9.883 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.357e-05/0.3932, allocations: 21.31 kB / 0.4972 GB, free: 9.863 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.573e-05/0.3932, allocations: 1.219 kB / 0.4972 GB, free: 9.863 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.3932, allocations: 0 / 0.4972 GB, free: 9.863 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.171e-05/0.3933, allocations: 46.36 kB / 0.4973 GB, free: 9.828 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.3933, allocations: 11.81 kB / 0.4973 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.3933, allocations: 5.203 kB / 0.4973 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.3933, allocations: 0 / 0.4973 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.045e-05/0.3934, allocations: 5.703 kB / 0.4973 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.3934, allocations: 3.688 kB / 0.4973 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.994e-05/0.3935, allocations: 5.406 kB / 0.4973 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.3935, allocations: 3.844 kB / 0.4973 GB, free: 9.816 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.419e-05/0.3935, allocations: 107.9 kB / 0.4974 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.882e-05/0.3936, allocations: 38.64 kB / 0.4975 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.482e-05/0.3936, allocations: 11.91 kB / 0.4975 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3936, allocations: 0 / 0.4975 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.3936, allocations: 0 / 0.4975 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.448e-06/0.3936, allocations: 0 / 0.4975 GB, free: 9.664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.3938, allocations: 152.3 kB / 0.4976 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.3938, allocations: 0 / 0.4976 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/0.3938, allocations: 5.141 kB / 0.4976 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.3938, allocations: 0 / 0.4976 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.3939, allocations: 8.984 kB / 0.4976 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.3939, allocations: 3.938 kB / 0.4976 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.3939, allocations: 4 kB / 0.4976 GB, free: 9.492 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 8.928e-05/0.394, allocations: 162.4 kB / 0.4978 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.242e-05/0.394, allocations: 91.75 kB / 0.4979 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.738e-05/0.394, allocations: 4.641 kB / 0.4979 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.432e-05/0.3941, allocations: 4.609 kB / 0.4979 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.921e-05/0.3941, allocations: 1.266 kB / 0.4979 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.346e-06/0.3942, allocations: 0 / 0.4979 GB, free: 9.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.808e-05/0.3942, allocations: 107.1 kB / 0.498 GB, free: 9.156 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.3944, allocations: 3.656 kB / 0.498 GB, free: 9.156 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.779e-05/0.3945, allocations: 99.47 kB / 0.4981 GB, free: 9.062 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.422e-05/0.3946, allocations: 19.52 kB / 0.4981 GB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3946, allocations: 0 / 0.4981 GB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.527e-05/0.3946, allocations: 8.125 kB / 0.4981 GB, free: 9.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.3949, allocations: 14.02 kB / 0.4981 GB, free: 9.051 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002358/0.3951, allocations: 97.23 kB / 0.4982 GB, free: 8.961 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001689/0.3953, allocations: 0.7051 MB / 0.4989 GB, free: 8.254 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3953, allocations: 4.188 kB / 0.4989 GB, free: 8.254 MB / 330.7 MB Notification: Performance of Templates: time 0.002465/0.3978, allocations: 0.517 MB / 0.4994 GB, free: 8.195 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,Time,sample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.y,shiftSample.resolution,shiftSample.shiftCounter,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time