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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009889/0.0009888, allocations: 180.9 kB / 8.049 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.507/1.507, allocations: 205.3 MB / 213.8 MB, free: 1.738 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.0009387/0.0009385, allocations: 82.64 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.07045/0.07045, allocations: 12.59 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.558e-05/1.552e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2228/0.2229, allocations: 50.39 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09733/0.3202, allocations: 77.57 MB / 0.495 GB, free: 4.672 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3205, allocations: 79.95 kB / 0.4951 GB, free: 4.594 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003755/0.3243, allocations: 1.447 MB / 0.4965 GB, free: 3.148 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3243, allocations: 0 / 0.4965 GB, free: 3.148 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.3243, allocations: 0 / 0.4965 GB, free: 3.148 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.0003303/0.3247, allocations: 346.4 kB / 0.4968 GB, free: 2.766 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.959e-05/0.3247, allocations: 8.031 kB / 0.4968 GB, free: 2.758 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.163e-05/0.3248, allocations: 11.84 kB / 0.4968 GB, free: 2.746 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.325, allocations: 191.9 kB / 0.497 GB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.628e-06/0.325, allocations: 0 / 0.497 GB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.435e-05/0.325, allocations: 8 kB / 0.497 GB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.435e-05/0.3251, allocations: 19.94 kB / 0.4971 GB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.3253, allocations: 101.8 kB / 0.4972 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.665e-06/0.3253, allocations: 0 / 0.4972 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.3253, allocations: 0 / 0.4972 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.3253, allocations: 0 / 0.4972 GB, free: 2.371 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003216/0.3257, allocations: 263.2 kB / 0.4974 GB, free: 2.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.287e-05/0.3257, allocations: 63.8 kB / 0.4975 GB, free: 1.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.787e-05/0.3258, allocations: 26.64 kB / 0.4975 GB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.3258, allocations: 3.984 kB / 0.4975 GB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.79e-05/0.3258, allocations: 38.5 kB / 0.4975 GB, free: 1.895 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.3259, allocations: 0 / 0.4975 GB, free: 1.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001577/0.326, allocations: 61.59 kB / 0.4976 GB, free: 1.828 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.006e-05/0.3261, allocations: 106.8 kB / 0.4977 GB, free: 1.699 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.3262, allocations: 135.1 kB / 0.4978 GB, free: 1.562 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.3262, allocations: 25.7 kB / 0.4978 GB, free: 1.531 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.3262, allocations: 88.14 kB / 0.4979 GB, free: 1.441 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.3263, allocations: 3.938 kB / 0.4979 GB, free: 1.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.3263, allocations: 0 / 0.4979 GB, free: 1.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3264, allocations: 330.9 kB / 0.4982 GB, free: 1.105 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.332e-05/0.3264, allocations: 0 / 0.4982 GB, free: 1.105 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.917e-05/0.3265, allocations: 27.44 kB / 0.4983 GB, free: 1.066 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.205e-05/0.3265, allocations: 11.98 kB / 0.4983 GB, free: 1.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3265, allocations: 0 / 0.4983 GB, free: 1.055 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.177e-05/0.3266, allocations: 57.55 kB / 0.4983 GB, free: 0.9922 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3266, allocations: 4 kB / 0.4983 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.3266, allocations: 4 kB / 0.4983 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3266, allocations: 3.984 kB / 0.4984 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.636e-05/0.3267, allocations: 11.94 kB / 0.4984 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/0.3267, allocations: 7.984 kB / 0.4984 GB, free: 0.9609 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.891e-05/0.3268, allocations: 4 kB / 0.4984 GB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.3268, allocations: 8 kB / 0.4984 GB, free: 0.9492 MB / 346.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 7.19e-05/0.3269, allocations: 117 kB / 0.4985 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.159e-05/0.327, allocations: 45.55 kB / 0.4985 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.57e-05/0.327, allocations: 15.95 kB / 0.4986 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.327, allocations: 0 / 0.4986 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.327, allocations: 4 kB / 0.4986 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.327, allocations: 0 / 0.4986 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001526/0.3272, allocations: 150.2 kB / 0.4987 GB, free: 0.5742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.3272, allocations: 4.094 kB / 0.4987 GB, free: 0.5703 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.78e-05/0.3273, allocations: 12.06 kB / 0.4987 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3273, allocations: 3.984 kB / 0.4987 GB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.3273, allocations: 3.984 kB / 0.4987 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.3273, allocations: 0 / 0.4987 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3273, allocations: 4 kB / 0.4987 GB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000132/0.3275, allocations: 192.5 kB / 0.4989 GB, free: 332 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.848e-05/0.3275, allocations: 93 kB / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.455e-05/0.3275, allocations: 0 / 0.499 GB, free: 220 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.066e-05/0.3276, allocations: 4 kB / 0.499 GB, free: 216 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.814e-05/0.3277, allocations: 3.984 kB / 0.499 GB, free: 212 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-06/0.3277, allocations: 4 kB / 0.499 GB, free: 208 kB / 346.7 MB Notification: Performance of sorting global known variables: time 5.773e-05/0.3277, allocations: 104 kB / 0.4991 GB, free: 104 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.553e-06/0.3277, allocations: 0 / 0.4991 GB, free: 104 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.000222/0.328, allocations: 15.89 kB / 0.4991 GB, free: 88 kB / 346.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 0.0001237/0.3281, allocations: 95.25 kB / 0.4992 GB, free: 15.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.048e-05/0.3282, allocations: 19.94 kB / 0.4992 GB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.3282, allocations: 3.938 kB / 0.4992 GB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.274e-05/0.3282, allocations: 4 kB / 0.4992 GB, free: 15.96 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002443/0.3285, allocations: 23.39 kB / 0.4993 GB, free: 15.94 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002422/0.3287, allocations: 110.2 kB / 0.4994 GB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002812/0.329, allocations: 0.7001 MB / 0.5001 GB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.382e-05/0.329, allocations: 4.188 kB / 0.5001 GB, free: 15.06 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.3291, allocations: 7.438 kB / 0.5001 GB, free: 15.05 MB / 362.7 MB Notification: Performance of SimCode: time 3.31e-07/0.3291, allocations: 0 / 0.5001 GB, free: 15.05 MB / 362.7 MB Notification: Performance of Templates: time 0.002272/0.3314, allocations: 0.5388 MB / 0.5006 GB, free: 14.52 MB / 362.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