Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.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.00179/0.00179, allocations: 189.8 kB / 7.845 MB, free: 2.516 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.301/1.301, 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.0008553/0.0008554, allocations: 98.28 kB / 261.5 MB, free: 13.52 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.06904/0.06904, allocations: 12.59 MB / 322 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.874e-06/7.894e-06, allocations: 0 / 378.4 MB, free: 75.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08535/0.08537, allocations: 50.36 MB / 428.8 MB, free: 25.26 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.259/0.3444, allocations: 77.51 MB / 0.4944 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002102/0.3447, allocations: 78.83 kB / 0.4945 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003581/0.3483, allocations: 1.129 MB / 0.4956 GB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.3483, allocations: 3.828 kB / 0.4956 GB, free: 11.54 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.0002594/0.3486, allocations: 346.2 kB / 0.4959 GB, free: 11.19 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.348e-05/0.3486, allocations: 15.62 kB / 0.4959 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.3487, allocations: 11.59 kB / 0.4959 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.3488, allocations: 189.5 kB / 0.4961 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-06/0.3489, allocations: 0 / 0.4961 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.3489, allocations: 3.812 kB / 0.4961 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.07e-05/0.3489, allocations: 16.66 kB / 0.4961 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.3491, allocations: 106 kB / 0.4962 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.3491, allocations: 0 / 0.4962 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.3491, allocations: 3.906 kB / 0.4962 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.3492, allocations: 0.8438 kB / 0.4962 GB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00029/0.3495, allocations: 259.3 kB / 0.4965 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.555e-05/0.3495, allocations: 60.42 kB / 0.4966 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.22e-05/0.3496, allocations: 26.2 kB / 0.4966 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.3496, allocations: 9.453 kB / 0.4966 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.3496, allocations: 38.53 kB / 0.4966 GB, free: 10.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.3496, allocations: 0 / 0.4966 GB, free: 10.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001679/0.3498, allocations: 56.5 kB / 0.4967 GB, free: 10.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.504e-05/0.3498, allocations: 106.7 kB / 0.4968 GB, free: 10.33 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.863e-05/0.3499, allocations: 130.4 kB / 0.4969 GB, free: 10.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.177e-06/0.35, allocations: 33.73 kB / 0.4969 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.71e-05/0.35, allocations: 89.55 kB / 0.497 GB, free: 10.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.182e-05/0.35, allocations: 0 / 0.497 GB, free: 10.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-06/0.35, allocations: 0 / 0.497 GB, free: 10.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.52e-05/0.3501, allocations: 325.1 kB / 0.4973 GB, free: 9.789 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.424e-05/0.3501, allocations: 3.875 kB / 0.4973 GB, free: 9.789 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.02e-05/0.3501, allocations: 28.23 kB / 0.4974 GB, free: 9.758 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.341e-05/0.3502, allocations: 9.172 kB / 0.4974 GB, free: 9.754 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3502, allocations: 3.906 kB / 0.4974 GB, free: 9.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.526e-05/0.3503, allocations: 56.47 kB / 0.4974 GB, free: 9.715 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.3503, allocations: 3.906 kB / 0.4974 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3503, allocations: 0 / 0.4974 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.3503, allocations: 3.625 kB / 0.4974 GB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.99e-05/0.3504, allocations: 14.08 kB / 0.4974 GB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.3504, allocations: 3.938 kB / 0.4975 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.793e-05/0.3505, allocations: 8.734 kB / 0.4975 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.3505, allocations: 9.391 kB / 0.4975 GB, free: 9.703 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.577e-05/0.3505, allocations: 107.8 kB / 0.4976 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.3506, allocations: 46.83 kB / 0.4976 GB, free: 9.555 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.296e-05/0.3507, allocations: 13.03 kB / 0.4976 GB, free: 9.551 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3507, allocations: 7.719 kB / 0.4976 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3507, allocations: 0 / 0.4976 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3507, allocations: 0 / 0.4976 GB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001395/0.3508, allocations: 149.9 kB / 0.4978 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3508, allocations: 3.938 kB / 0.4978 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.36e-05/0.3509, allocations: 10.3 kB / 0.4978 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.3509, allocations: 7.703 kB / 0.4978 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.088e-06/0.3509, allocations: 5.312 kB / 0.4978 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3509, allocations: 0 / 0.4978 GB, free: 9.379 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.351, allocations: 4 kB / 0.4978 GB, free: 9.375 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001044/0.3511, allocations: 184.3 kB / 0.498 GB, free: 9.195 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.069e-05/0.3511, allocations: 92.48 kB / 0.4981 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.3511, allocations: 5.406 kB / 0.4981 GB, free: 9.094 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.142e-05/0.3512, allocations: 7.875 kB / 0.4981 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.3513, allocations: 8.969 kB / 0.4981 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.449e-06/0.3513, allocations: 3.875 kB / 0.4981 GB, free: 9.086 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.217e-05/0.3513, allocations: 102.2 kB / 0.4982 GB, free: 9.012 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002401/0.3516, allocations: 3.844 kB / 0.4982 GB, free: 9.012 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.959e-05/0.3516, allocations: 99.77 kB / 0.4983 GB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.624e-05/0.3517, allocations: 16.98 kB / 0.4983 GB, free: 8.922 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.3517, allocations: 11.94 kB / 0.4983 GB, free: 8.91 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.328e-05/0.3518, allocations: 8.953 kB / 0.4983 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.352, allocations: 22.25 kB / 0.4984 GB, free: 8.906 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002351/0.3523, allocations: 106.8 kB / 0.4985 GB, free: 8.809 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001512/0.3524, allocations: 0.7066 MB / 0.4991 GB, free: 8.102 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3524, allocations: 4.25 kB / 0.4991 GB, free: 8.098 MB / 330.7 MB Notification: Performance of Templates: time 0.002524/0.355, allocations: 0.5749 MB / 0.4997 GB, free: 8.039 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:Time,sample.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time