Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000885/0.000885, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009903/0.0009904, allocations: 197.9 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000194/0.000194, allocations: 4.234 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08183/0.08204, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.001909/0.08397, allocations: 1.595 MB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001801/0.0858, allocations: 1.247 MB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.773e-05/0.0859, allocations: 4 kB / 362.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.0861, allocations: 59.8 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002465/0.08636, allocations: 111.6 kB / 362.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004976/0.08687, allocations: 191.4 kB / 362.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.08707, allocations: 175.5 kB / 362.7 MB, free: 9.785 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.461e-05/0.08716, allocations: 33.52 kB / 362.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.786e-05/0.08726, allocations: 67.64 kB / 362.8 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.759e-05/0.08737, allocations: 67.69 kB / 362.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/0.08739, allocations: 4 kB / 362.9 MB, free: 9.617 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.08752, allocations: 59.89 kB / 363 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.062e-05/0.08759, allocations: 51.78 kB / 363 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.809e-05/0.08767, allocations: 97.19 kB / 363.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002364/0.08792, allocations: 235.4 kB / 363.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.08793, allocations: 0 / 363.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08794, allocations: 0 / 363.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.08794, allocations: 0 / 363.3 MB, free: 9.176 MB / 302.1 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.0005307/0.08848, allocations: 0.5079 MB / 363.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.724e-05/0.08851, allocations: 8.031 kB / 363.8 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.08856, allocations: 38.75 kB / 363.9 MB, free: 8.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.005e-05/0.0886, allocations: 20.66 kB / 363.9 MB, free: 8.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.08888, allocations: 287.5 kB / 364.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.0889, allocations: 8.375 kB / 364.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.08892, allocations: 7.938 kB / 364.2 MB, free: 8.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002571/0.08918, allocations: 155.5 kB / 364.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.219e-06/0.0892, allocations: 4 kB / 364.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.08922, allocations: 7.984 kB / 364.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.08923, allocations: 4 kB / 364.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.491e-05/0.08932, allocations: 27.98 kB / 364.4 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.08975, allocations: 394.3 kB / 364.8 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.08996, allocations: 115.9 kB / 364.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.125e-05/0.09005, allocations: 46.56 kB / 364.9 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.09008, allocations: 8 kB / 365 MB, free: 7.336 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001436/0.09023, allocations: 75.31 kB / 365 MB, free: 7.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.613e-06/0.09024, allocations: 0 / 365 MB, free: 7.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003136/0.09056, allocations: 153.3 kB / 365.2 MB, free: 7.094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.09063, allocations: 158.5 kB / 365.3 MB, free: 6.902 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003019/0.09094, allocations: 350.5 kB / 365.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.672e-05/0.09096, allocations: 29.7 kB / 365.7 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.09104, allocations: 128.1 kB / 365.8 MB, free: 6.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.09106, allocations: 19.8 kB / 365.8 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.796e-05/0.0911, allocations: 17.72 kB / 365.9 MB, free: 6.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.621e-05/0.0912, allocations: 334.8 kB / 366.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.231e-05/0.09127, allocations: 23.98 kB / 366.2 MB, free: 5.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.395e-05/0.09137, allocations: 82.86 kB / 366.3 MB, free: 5.879 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001384/0.09151, allocations: 92.14 kB / 366.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.09152, allocations: 0 / 366.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002105/0.09174, allocations: 125.6 kB / 366.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.09176, allocations: 4 kB / 366.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.09177, allocations: 4.047 kB / 366.5 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.238e-06/0.09178, allocations: 3.984 kB / 366.5 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.882e-05/0.09187, allocations: 19.98 kB / 366.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.436e-06/0.09189, allocations: 0 / 366.5 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.223e-05/0.09196, allocations: 19.97 kB / 366.6 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.09198, allocations: 4 kB / 366.6 MB, free: 5.59 MB / 302.1 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001128/0.0921, allocations: 165.6 kB / 366.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.168e-05/0.09218, allocations: 65.36 kB / 366.8 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.433e-05/0.09223, allocations: 29.7 kB / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.09224, allocations: 0 / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.09225, allocations: 4 kB / 366.8 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.09226, allocations: 11.98 kB / 366.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001824/0.09244, allocations: 241.6 kB / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.09245, allocations: 0 / 367.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.384e-05/0.09252, allocations: 15.98 kB / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.09253, allocations: 0 / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.09254, allocations: 0 / 367.1 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.09255, allocations: 4 kB / 367.1 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.09256, allocations: 0 / 367.1 MB, free: 5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002315/0.09279, allocations: 174.3 kB / 367.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-05/0.09289, allocations: 116.8 kB / 367.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.655e-05/0.09292, allocations: 0 / 367.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.605e-05/0.093, allocations: 8 kB / 367.4 MB, free: 4.664 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.594e-05/0.09304, allocations: 11.92 kB / 367.4 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.09306, allocations: 4 kB / 367.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002272/0.09329, allocations: 253.9 kB / 367.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.0933, allocations: 0 / 367.6 MB, free: 4.402 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002561/0.09356, allocations: 36 kB / 367.7 MB, free: 4.367 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00135/0.09492, allocations: 1.021 MB / 368.7 MB, free: 3.449 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002063/0.09514, allocations: 67.91 kB / 368.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.09515, allocations: 0 / 368.8 MB, free: 3.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.064e-05/0.09524, allocations: 27.98 kB / 368.8 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.09564, allocations: 75.7 kB / 368.9 MB, free: 3.281 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.09789, allocations: 2.25 MB / 371.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.09815, allocations: 0.7439 MB / 371.9 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.6e-05/0.09825, allocations: 33.52 kB / 371.9 MB, free: 124 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.546e-05/0.09835, allocations: 63.41 kB / 372 MB, free: 60 kB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.09835, allocations: 0 / 372 MB, free: 60 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1528/0.2512, allocations: 4.804 MB / 376.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001215/0.2513, allocations: 257.2 kB / 377 MB, free: 17.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.681/1.932, allocations: 3.938 kB / 377 MB, free: 17.63 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Error getting time " Variables in the reference:time,sample1.y,shiftSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.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.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,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