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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008907/0.0008907, allocations: 177.6 kB / 8.047 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.445/1.445, allocations: 205.3 MB / 213.8 MB, free: 1.742 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.0008226/0.0008225, allocations: 87.88 kB / 261.8 MB, free: 1.68 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.08156/0.08156, allocations: 12.59 MB / 322.3 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.611e-05/1.613e-05, allocations: 0 / 378.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2483/0.2483, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1043/0.3526, allocations: 77.57 MB / 0.495 GB, free: 4.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.3529, allocations: 79.95 kB / 0.4951 GB, free: 4.602 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003694/0.3566, allocations: 1.443 MB / 0.4965 GB, free: 3.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3566, allocations: 0 / 0.4965 GB, free: 3.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.737e-06/0.3566, allocations: 3.938 kB / 0.4965 GB, free: 3.156 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003359/0.357, allocations: 342.5 kB / 0.4968 GB, free: 2.777 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.357, allocations: 8.031 kB / 0.4968 GB, free: 2.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.027e-05/0.3571, allocations: 7.906 kB / 0.4968 GB, free: 2.762 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.3573, allocations: 203.2 kB / 0.497 GB, free: 2.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.3573, allocations: 4 kB / 0.497 GB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.302e-05/0.3573, allocations: 4 kB / 0.497 GB, free: 2.516 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.732e-05/0.3574, allocations: 16 kB / 0.497 GB, free: 2.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.3576, allocations: 93.05 kB / 0.4971 GB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.3576, allocations: 0 / 0.4971 GB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.088e-06/0.3576, allocations: 0 / 0.4971 GB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.3576, allocations: 0 / 0.4971 GB, free: 2.391 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000335/0.358, allocations: 254.2 kB / 0.4974 GB, free: 2.102 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.666e-05/0.358, allocations: 37.09 kB / 0.4974 GB, free: 2.047 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.722e-05/0.3581, allocations: 17.84 kB / 0.4974 GB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.3581, allocations: 4 kB / 0.4974 GB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.173e-05/0.3581, allocations: 34.56 kB / 0.4975 GB, free: 1.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.3581, allocations: 0 / 0.4975 GB, free: 1.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001455/0.3583, allocations: 49.53 kB / 0.4975 GB, free: 1.922 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.3583, allocations: 81.11 kB / 0.4976 GB, free: 1.824 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.3585, allocations: 127.7 kB / 0.4977 GB, free: 1.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.3585, allocations: 29.77 kB / 0.4977 GB, free: 1.66 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.3585, allocations: 92.12 kB / 0.4978 GB, free: 1.566 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.085e-05/0.3585, allocations: 0 / 0.4978 GB, free: 1.566 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.3586, allocations: 0 / 0.4978 GB, free: 1.566 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3587, allocations: 318.8 kB / 0.4981 GB, free: 1.246 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.3587, allocations: 7.938 kB / 0.4981 GB, free: 1.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.61e-05/0.3587, allocations: 13.7 kB / 0.4981 GB, free: 1.219 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.024e-05/0.3587, allocations: 12.06 kB / 0.4982 GB, free: 1.207 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-06/0.3587, allocations: 0 / 0.4982 GB, free: 1.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.515e-05/0.3588, allocations: 45.55 kB / 0.4982 GB, free: 1.156 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.3588, allocations: 4 kB / 0.4982 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.3588, allocations: 0 / 0.4982 GB, free: 1.152 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.3589, allocations: 7.984 kB / 0.4982 GB, free: 1.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.462e-05/0.3589, allocations: 7.984 kB / 0.4982 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.017e-06/0.3589, allocations: 0 / 0.4982 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.572e-05/0.359, allocations: 8.062 kB / 0.4982 GB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.359, allocations: 0 / 0.4982 GB, free: 1.129 MB / 346.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 6.185e-05/0.3591, allocations: 108.9 kB / 0.4983 GB, free: 1.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.183e-05/0.3591, allocations: 45.53 kB / 0.4984 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.602e-05/0.3592, allocations: 7.969 kB / 0.4984 GB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3592, allocations: 0 / 0.4984 GB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3592, allocations: 3.938 kB / 0.4984 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.3592, allocations: 4 kB / 0.4984 GB, free: 0.9492 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.3593, allocations: 150.2 kB / 0.4985 GB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3593, allocations: 7.984 kB / 0.4985 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.33e-05/0.3594, allocations: 7.984 kB / 0.4985 GB, free: 0.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3594, allocations: 4 kB / 0.4985 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.3594, allocations: 0 / 0.4985 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3594, allocations: 0 / 0.4985 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.3594, allocations: 0 / 0.4985 GB, free: 0.7461 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.3596, allocations: 166 kB / 0.4987 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.3596, allocations: 93.03 kB / 0.4988 GB, free: 460 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.548e-05/0.3596, allocations: 0 / 0.4988 GB, free: 460 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.048e-05/0.3597, allocations: 0 / 0.4988 GB, free: 460 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.415e-05/0.3597, allocations: 4 kB / 0.4988 GB, free: 456 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-06/0.3597, allocations: 0 / 0.4988 GB, free: 456 kB / 346.7 MB Notification: Performance of sorting global known variables: time 7.274e-05/0.3598, allocations: 108 kB / 0.4989 GB, free: 348 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3598, allocations: 0 / 0.4989 GB, free: 348 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001965/0.36, allocations: 7.906 kB / 0.4989 GB, free: 340 kB / 346.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 8.652e-05/0.3601, allocations: 99.27 kB / 0.499 GB, free: 232 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.013e-05/0.3602, allocations: 8 kB / 0.499 GB, free: 224 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.3602, allocations: 3.938 kB / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.508e-05/0.3602, allocations: 8 kB / 0.499 GB, free: 212 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002297/0.3605, allocations: 27.28 kB / 0.499 GB, free: 188 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002142/0.3607, allocations: 85.14 kB / 0.4991 GB, free: 72 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.361, allocations: 0.704 MB / 0.4998 GB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.215e-05/0.361, allocations: 4 kB / 0.4998 GB, free: 15.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.566e-05/0.3611, allocations: 7.438 kB / 0.4998 GB, free: 15.33 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.3611, allocations: 0 / 0.4998 GB, free: 15.33 MB / 362.7 MB Notification: Performance of Templates: time 0.002276/0.3634, allocations: 485.4 kB / 0.5003 GB, free: 14.86 MB / 362.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