Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001056/0.001056, allocations: 195.3 kB / 17.38 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.682/1.682, allocations: 226.5 MB / 244.7 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007831/0.0007832, allocations: 107.4 kB / 296.7 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.0002742, allocations: 4 kB / 356.8 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.316, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.002216/0.3183, allocations: 1.583 MB / 409.7 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00169/0.32, allocations: 1.18 MB / 410.9 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.3201, allocations: 7.938 kB / 410.9 MB, free: 24.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003825/0.3205, allocations: 61.98 kB / 411 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003135/0.3209, allocations: 103.6 kB / 411.1 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006714/0.3215, allocations: 224.6 kB / 411.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002016/0.3218, allocations: 151.5 kB / 411.4 MB, free: 24.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.3219, allocations: 27.48 kB / 411.5 MB, free: 24.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.573e-05/0.322, allocations: 67.58 kB / 411.5 MB, free: 24.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.842e-05/0.3221, allocations: 76.17 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.3221, allocations: 1 kB / 411.6 MB, free: 24.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.3222, allocations: 43.98 kB / 411.6 MB, free: 24.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.669e-05/0.3223, allocations: 51.81 kB / 411.7 MB, free: 24.12 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.554e-05/0.3224, allocations: 94.16 kB / 411.8 MB, free: 24.02 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002417/0.3227, allocations: 172.9 kB / 412 MB, free: 23.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.3227, allocations: 4.906 kB / 412 MB, free: 23.85 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3227, allocations: 0 / 412 MB, free: 23.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3227, allocations: 4 kB / 412 MB, free: 23.85 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0006225/0.3233, allocations: 0.5011 MB / 412.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3234, allocations: 11.78 kB / 412.5 MB, free: 23.29 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.692e-05/0.3234, allocations: 42.73 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.355e-05/0.3235, allocations: 24.66 kB / 412.5 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002929/0.3238, allocations: 279.6 kB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.3238, allocations: 8.375 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.803e-05/0.3238, allocations: 7.938 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.3241, allocations: 159.6 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3242, allocations: 0 / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.3242, allocations: 4 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.281e-06/0.3242, allocations: 4 kB / 413 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.3243, allocations: 31.92 kB / 413 MB, free: 22.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000458/0.3248, allocations: 390.3 kB / 413.4 MB, free: 22.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.325, allocations: 119.9 kB / 413.5 MB, free: 22.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.644e-05/0.3251, allocations: 58.42 kB / 413.6 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.3251, allocations: 0 / 413.6 MB, free: 22.01 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001773/0.3253, allocations: 75.38 kB / 413.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.3253, allocations: 0 / 413.7 MB, free: 21.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003299/0.3256, allocations: 157.3 kB / 413.8 MB, free: 21.77 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.3257, allocations: 162.2 kB / 414 MB, free: 21.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002803/0.326, allocations: 334.6 kB / 414.3 MB, free: 21.23 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.326, allocations: 29.7 kB / 414.3 MB, free: 21.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.827e-05/0.3261, allocations: 132 kB / 414.4 MB, free: 21.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.3261, allocations: 15.84 kB / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-06/0.3261, allocations: 4.25 kB / 414.5 MB, free: 21.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.483e-05/0.3262, allocations: 334.8 kB / 414.8 MB, free: 20.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.948e-05/0.3263, allocations: 23.98 kB / 414.8 MB, free: 20.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.113e-05/0.3264, allocations: 82.84 kB / 414.9 MB, free: 20.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.3265, allocations: 84.22 kB / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3265, allocations: 0 / 415 MB, free: 20.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002002/0.3267, allocations: 125.3 kB / 415.1 MB, free: 20.36 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3267, allocations: 4 kB / 415.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.3267, allocations: 4.125 kB / 415.1 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3268, allocations: 4 kB / 415.1 MB, free: 20.34 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.3269, allocations: 27.92 kB / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3269, allocations: 0 / 415.1 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.463e-05/0.327, allocations: 7.938 kB / 415.1 MB, free: 20.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.327, allocations: 8.25 kB / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.000111/0.3271, allocations: 157.8 kB / 415.3 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.551e-05/0.3272, allocations: 69.39 kB / 415.4 MB, free: 20.06 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.05e-05/0.3272, allocations: 33.64 kB / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.3272, allocations: 0 / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3272, allocations: 0 / 415.4 MB, free: 20.03 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.3272, allocations: 11.92 kB / 415.4 MB, free: 20.02 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001457/0.3274, allocations: 245.5 kB / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3274, allocations: 0 / 415.7 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.109e-05/0.3275, allocations: 11.98 kB / 415.7 MB, free: 19.72 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3275, allocations: 4 kB / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.3275, allocations: 0 / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3275, allocations: 0 / 415.7 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3275, allocations: 11.97 kB / 415.7 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002141/0.3277, allocations: 166.4 kB / 415.9 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.14e-05/0.3278, allocations: 108.9 kB / 416 MB, free: 19.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.892e-05/0.3279, allocations: 8 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.495e-05/0.3279, allocations: 4 kB / 416 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.233e-05/0.328, allocations: 19.92 kB / 416 MB, free: 19.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.328, allocations: 4 kB / 416 MB, free: 19.36 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000173/0.3282, allocations: 245.9 kB / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3282, allocations: 0 / 416.2 MB, free: 19.12 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000245/0.3284, allocations: 43.89 kB / 416.3 MB, free: 19.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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001183/0.3296, allocations: 1.005 MB / 417.3 MB, free: 18.18 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.3298, allocations: 75.89 kB / 417.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3299, allocations: 0 / 417.4 MB, free: 18.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.12e-05/0.3299, allocations: 35.91 kB / 417.4 MB, free: 18.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004056/0.3303, allocations: 69.56 kB / 417.5 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.3318, allocations: 1.216 MB / 418.7 MB, free: 16.71 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.332, allocations: 0.74 MB / 419.4 MB, free: 15.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.655e-05/0.3321, allocations: 59.42 kB / 419.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3321, allocations: 4 kB / 419.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.181/3.513, allocations: 3.508 MB / 423 MB, free: 12.38 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.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,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.isCsvExt,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.timeScaled,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.n,table.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time