Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007732/0.0007732, allocations: 88.69 kB / 296.7 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000265/0.0002652, allocations: 8 kB / 356.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2222, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.001617/0.2238, allocations: 1.293 MB / 409.4 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006828/0.2246, allocations: 0.4894 MB / 409.9 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.003e-05/0.2246, allocations: 7.938 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.079e-05/0.2247, allocations: 0 / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001222/0.2248, allocations: 12.55 kB / 409.9 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.2251, allocations: 46 kB / 410 MB, free: 25.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.451e-05/0.2252, allocations: 43.8 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.499e-05/0.2253, allocations: 16.17 kB / 410 MB, free: 25.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.2254, allocations: 20.41 kB / 410.1 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.234e-05/0.2254, allocations: 20.5 kB / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.2255, allocations: 0 / 410.1 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.024e-05/0.2255, allocations: 9.078 kB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.16e-05/0.2256, allocations: 11.94 kB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.2256, allocations: 45.56 kB / 410.1 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.716e-05/0.2257, allocations: 40.45 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.2257, allocations: 2 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2257, allocations: 4 kB / 410.2 MB, free: 25.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.2257, allocations: 0 / 410.2 MB, free: 25.62 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.0004007/0.2261, allocations: 367.8 kB / 410.6 MB, free: 25.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2262, allocations: 15.91 kB / 410.6 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.822e-05/0.2262, allocations: 34.75 kB / 410.6 MB, free: 25.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001352/0.2263, allocations: 20.83 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.2265, allocations: 202.5 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.809e-06/0.2265, allocations: 384 / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.51e-05/0.2266, allocations: 4.375 kB / 410.8 MB, free: 24.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002675/0.2268, allocations: 125.8 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.2268, allocations: 0 / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.2269, allocations: 0 / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.2269, allocations: 4 kB / 410.9 MB, free: 24.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.192e-05/0.227, allocations: 31.92 kB / 411 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002816/0.2273, allocations: 266.6 kB / 411.2 MB, free: 24.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.676e-05/0.2273, allocations: 71.78 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.773e-05/0.2274, allocations: 38.62 kB / 411.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.426e-05/0.2274, allocations: 11.94 kB / 411.4 MB, free: 24.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.58e-05/0.2275, allocations: 34.56 kB / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.412e-06/0.2275, allocations: 0 / 411.4 MB, free: 24.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.000237/0.2277, allocations: 85.52 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.2278, allocations: 115.1 kB / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.325e-05/0.2279, allocations: 141.8 kB / 411.7 MB, free: 23.83 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.366e-06/0.2279, allocations: 25.7 kB / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.2279, allocations: 88.14 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.535e-05/0.2279, allocations: 11.89 kB / 411.9 MB, free: 23.7 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.527e-06/0.228, allocations: 3.938 kB / 411.9 MB, free: 23.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.274e-05/0.228, allocations: 318.8 kB / 412.2 MB, free: 23.37 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.018e-05/0.2281, allocations: 11.98 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.919e-05/0.2281, allocations: 35.44 kB / 412.2 MB, free: 23.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.074e-05/0.2282, allocations: 55.36 kB / 412.3 MB, free: 23.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2282, allocations: 3.938 kB / 412.3 MB, free: 23.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001133/0.2283, allocations: 73.61 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.2283, allocations: 4 kB / 412.3 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2284, allocations: 4 kB / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.2284, allocations: 0 / 412.4 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.079e-05/0.2284, allocations: 20.05 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.2285, allocations: 0 / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.99e-05/0.2285, allocations: 7.938 kB / 412.4 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.044e-06/0.2285, allocations: 4 kB / 412.4 MB, free: 23.12 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.541e-05/0.2286, allocations: 121.8 kB / 412.5 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.228e-05/0.2286, allocations: 53.55 kB / 412.6 MB, free: 22.94 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.2287, allocations: 11.86 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.2287, allocations: 4 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.2287, allocations: 4.062 kB / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.2287, allocations: 0 / 412.6 MB, free: 22.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001233/0.2288, allocations: 177.5 kB / 412.7 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2288, allocations: 0 / 412.7 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.563e-05/0.2289, allocations: 15.98 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.2289, allocations: 0 / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.2289, allocations: 4 kB / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.2289, allocations: 0 / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2289, allocations: 0 / 412.8 MB, free: 22.67 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.2291, allocations: 181.1 kB / 412.9 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.276e-05/0.2291, allocations: 97 kB / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.2292, allocations: 0 / 413 MB, free: 22.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.725e-05/0.2292, allocations: 7.984 kB / 413 MB, free: 22.35 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.2293, allocations: 4 kB / 413 MB, free: 22.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.2293, allocations: 4 kB / 413.1 MB, free: 22.34 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.699e-05/0.2293, allocations: 114.3 kB / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2293, allocations: 0 / 413.2 MB, free: 22.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002055/0.2295, allocations: 4 kB / 413.2 MB, free: 22.23 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.0002682/0.2298, allocations: 0.7141 MB / 413.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001248/0.23, allocations: 35.92 kB / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.23, allocations: 256 / 413.9 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.425e-05/0.23, allocations: 15.98 kB / 413.9 MB, free: 21.43 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003628/0.2304, allocations: 31.98 kB / 414 MB, free: 21.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006602/0.231, allocations: 0.567 MB / 414.5 MB, free: 20.76 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001503/0.2312, allocations: 0.6887 MB / 415.2 MB, free: 20.04 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.33e-05/0.2313, allocations: 19.48 kB / 415.2 MB, free: 20.02 MB / 298.7 MB Notification: Performance of SimCode: time 1.022e-06/0.2313, allocations: 0 / 415.2 MB, free: 20.02 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.588/2.819, allocations: 1.056 MB / 416.3 MB, free: 18.97 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time