Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001024/0.001024, allocations: 175.7 kB / 16.77 MB, free: 5.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.18/1.18, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0006366/0.0006366, allocations: 85.42 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06119/0.06119, allocations: 12.2 MB / 331.8 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003626/0.0003627, allocations: 16 kB / 392.2 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06838/0.06876, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample): time 0.001312/0.07011, allocations: 1.266 MB / 443.8 MB, free: 15.27 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006016/0.07072, allocations: 0.5195 MB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.785e-05/0.07081, allocations: 0 / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.828e-05/0.07085, allocations: 3.938 kB / 444.3 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.07097, allocations: 11.92 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001897/0.07117, allocations: 43.89 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.656e-05/0.07126, allocations: 43.8 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.058e-05/0.07134, allocations: 16.17 kB / 444.4 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.676e-05/0.07143, allocations: 27.91 kB / 444.4 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.768e-05/0.07148, allocations: 19.86 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.0715, allocations: 7.875 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.071e-05/0.07152, allocations: 0 / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.138e-05/0.07155, allocations: 19.94 kB / 444.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.907e-05/0.07159, allocations: 45.56 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.146e-05/0.07166, allocations: 35.94 kB / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.07167, allocations: 0 / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.07167, allocations: 0 / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.547e-06/0.07168, allocations: 0 / 444.6 MB, free: 14.46 MB / 298.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.0003346/0.07202, allocations: 371.4 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.07206, allocations: 8.031 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.034e-05/0.0721, allocations: 38.73 kB / 445 MB, free: 14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.07213, allocations: 12.84 kB / 445 MB, free: 13.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.07227, allocations: 204 kB / 445.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.07229, allocations: 384 / 445.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.0723, allocations: 4.375 kB / 445.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.07253, allocations: 125.8 kB / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.07255, allocations: 3.938 kB / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.945e-06/0.07257, allocations: 0 / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.07258, allocations: 0 / 445.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.466e-05/0.07265, allocations: 23.98 kB / 445.3 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002178/0.07288, allocations: 290.5 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.563e-05/0.07298, allocations: 63.8 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.33e-05/0.07304, allocations: 38.62 kB / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.623e-05/0.07306, allocations: 0 / 445.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.286e-05/0.07308, allocations: 34.56 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.32e-07/0.07308, allocations: 0 / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002237/0.07331, allocations: 101.8 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.07335, allocations: 102.8 kB / 446 MB, free: 12.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.784e-05/0.07344, allocations: 141.6 kB / 446.1 MB, free: 12.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.732e-06/0.07345, allocations: 25.7 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.712e-05/0.07348, allocations: 100 kB / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.839e-06/0.0735, allocations: 0 / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-06/0.07351, allocations: 0 / 446.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.09e-05/0.07355, allocations: 322.8 kB / 446.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.914e-05/0.0736, allocations: 11.98 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.87e-05/0.07364, allocations: 39.42 kB / 446.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.512e-05/0.07373, allocations: 55.3 kB / 446.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.07373, allocations: 0 / 446.6 MB, free: 12.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001101/0.07385, allocations: 77.47 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.968e-06/0.07387, allocations: 8.125 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.07388, allocations: 3.984 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.07389, allocations: 4 kB / 446.7 MB, free: 11.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.595e-05/0.07396, allocations: 8 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.07398, allocations: 0 / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.885e-05/0.07402, allocations: 4 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.07403, allocations: 7.984 kB / 446.7 MB, free: 11.97 MB / 298.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 () * Number of clocked 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 5.06e-05/0.07409, allocations: 122.4 kB / 446.9 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.921e-05/0.07415, allocations: 57.53 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.414e-05/0.07418, allocations: 19.77 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.07419, allocations: 4.078 kB / 446.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.0742, allocations: 4 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.07421, allocations: 0 / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001136/0.07432, allocations: 173.6 kB / 447.1 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.07433, allocations: 7.984 kB / 447.1 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.404e-05/0.07439, allocations: 8 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.0744, allocations: 0 / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.07441, allocations: 8.062 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.07442, allocations: 0 / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.07442, allocations: 3.938 kB / 447.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001281/0.07456, allocations: 181.1 kB / 447.3 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.34e-05/0.0746, allocations: 93 kB / 447.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.07462, allocations: 7.984 kB / 447.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.49e-05/0.07469, allocations: 4 kB / 447.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.717e-05/0.07473, allocations: 4 kB / 447.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.07474, allocations: 0 / 447.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.43e-05/0.07479, allocations: 111.2 kB / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.0748, allocations: 0 / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.075, allocations: 4 kB / 447.5 MB, free: 11.07 MB / 298.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 () * Number of clocked 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.0002569/0.07526, allocations: 0.7139 MB / 448.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.07539, allocations: 43.91 kB / 448.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.0754, allocations: 0 / 448.3 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.342e-05/0.07543, allocations: 12 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.07577, allocations: 27.95 kB / 448.3 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000661/0.07644, allocations: 0.5646 MB / 448.9 MB, free: 9.609 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001226/0.07657, allocations: 0.6887 MB / 449.6 MB, free: 8.895 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.871e-05/0.07662, allocations: 23.48 kB / 449.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.07662, allocations: 0 / 449.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.273/2.349, allocations: 1.054 MB / 450.7 MB, free: 7.816 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_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.u,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,sine.y,time