Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.0008644/0.0008644, 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.001096/0.001096, allocations: 199.6 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.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002023/0.0002023, allocations: 11.98 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.08636, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002046/0.08844, allocations: 1.599 MB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00185/0.09032, allocations: 1.165 MB / 362.1 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001755/0.09053, allocations: 7.938 kB / 362.1 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006524/0.09119, allocations: 139.7 kB / 362.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003831/0.09159, allocations: 139.3 kB / 362.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004549/0.09205, allocations: 147.6 kB / 362.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002374/0.0923, allocations: 187.4 kB / 362.7 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.09242, allocations: 33.53 kB / 362.8 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001191/0.09255, allocations: 71.58 kB / 362.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.09267, allocations: 67.69 kB / 362.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.0927, allocations: 0 / 362.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.09284, allocations: 47.97 kB / 362.9 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.584e-05/0.09292, allocations: 43.77 kB / 363 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.407e-05/0.09301, allocations: 93.19 kB / 363.1 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.09328, allocations: 203.5 kB / 363.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.09329, allocations: 0 / 363.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0933, allocations: 0 / 363.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.09331, allocations: 4 kB / 363.3 MB, free: 9.234 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.0006741/0.09399, allocations: 486.8 kB / 363.8 MB, free: 8.707 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.09403, allocations: 11.97 kB / 363.8 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.745e-05/0.09409, allocations: 46.67 kB / 363.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.09414, allocations: 20.66 kB / 363.8 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.09444, allocations: 258.9 kB / 364.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.637e-05/0.09447, allocations: 8.375 kB / 364.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.09449, allocations: 11.94 kB / 364.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002952/0.09479, allocations: 146.7 kB / 364.3 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.09481, allocations: 0 / 364.3 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.09483, allocations: 0 / 364.3 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/0.09484, allocations: 3.938 kB / 364.3 MB, free: 8.133 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.674e-05/0.09494, allocations: 39.98 kB / 364.3 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000451/0.0954, allocations: 362.3 kB / 364.7 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002115/0.09562, allocations: 115.9 kB / 364.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.116e-05/0.09571, allocations: 38.58 kB / 364.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.09575, allocations: 4.062 kB / 364.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001495/0.0959, allocations: 83.31 kB / 364.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.724e-06/0.09592, allocations: 0 / 364.9 MB, free: 7.398 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003323/0.09625, allocations: 133.4 kB / 365 MB, free: 7.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.567e-05/0.09633, allocations: 136.5 kB / 365.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002544/0.09659, allocations: 276.8 kB / 365.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.09662, allocations: 25.95 kB / 365.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.951e-05/0.0967, allocations: 124.1 kB / 365.6 MB, free: 6.664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.585e-05/0.09673, allocations: 19.75 kB / 365.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/0.09676, allocations: 17.72 kB / 365.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.09687, allocations: 330.8 kB / 365.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.502e-05/0.09693, allocations: 23.92 kB / 366 MB, free: 6.266 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.092e-05/0.09701, allocations: 73.94 kB / 366 MB, free: 6.172 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001238/0.09714, allocations: 76.22 kB / 366.1 MB, free: 6.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.09716, allocations: 0 / 366.1 MB, free: 6.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001911/0.09735, allocations: 113.8 kB / 366.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.564e-05/0.09738, allocations: 11.94 kB / 366.2 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.09739, allocations: 7.938 kB / 366.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.09741, allocations: 0 / 366.2 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.435e-05/0.09748, allocations: 12 kB / 366.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.0975, allocations: 0 / 366.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.353e-05/0.09758, allocations: 23.83 kB / 366.3 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.09759, allocations: 4 kB / 366.3 MB, free: 5.906 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,sample1.u,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.0001337/0.09773, allocations: 153.8 kB / 366.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.295e-05/0.09781, allocations: 57.52 kB / 366.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.684e-05/0.09786, allocations: 25.69 kB / 366.5 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.09787, allocations: 4 kB / 366.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.09788, allocations: 0 / 366.5 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.08e-06/0.09789, allocations: 3.938 kB / 366.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001743/0.09807, allocations: 229.5 kB / 366.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/0.09808, allocations: 0 / 366.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.603e-05/0.09811, allocations: 7.938 kB / 366.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.09812, allocations: 8.062 kB / 366.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.09814, allocations: 4 kB / 366.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.09814, allocations: 0 / 366.7 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.09815, allocations: 7.984 kB / 366.8 MB, free: 5.352 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000209/0.09837, allocations: 150.4 kB / 366.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.216e-05/0.09846, allocations: 112.9 kB / 367 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.09849, allocations: 8 kB / 367 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.947e-05/0.09856, allocations: 4 kB / 367 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.0986, allocations: 11.92 kB / 367 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.315e-05/0.09862, allocations: 7.938 kB / 367 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000175/0.0988, allocations: 200.5 kB / 367.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09881, allocations: 0 / 367.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002413/0.09906, allocations: 32 kB / 367.3 MB, free: 4.789 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,sample1.u,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.001224/0.1003, allocations: 0.9937 MB / 368.3 MB, free: 3.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001801/0.1005, allocations: 76.03 kB / 368.3 MB, free: 3.824 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.1005, allocations: 4.062 kB / 368.3 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.935e-05/0.1006, allocations: 19.98 kB / 368.4 MB, free: 3.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003852/0.101, allocations: 65.08 kB / 368.4 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.103, allocations: 1.985 MB / 370.4 MB, free: 1.637 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002901/0.1033, allocations: 0.7361 MB / 371.1 MB, free: 0.875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.895e-05/0.1034, allocations: 17.55 kB / 371.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.684e-05/0.1035, allocations: 47.42 kB / 371.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of SimCode: time 4e-07/0.1035, allocations: 0 / 371.2 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1615/0.265, allocations: 4.159 MB / 375.4 MB, free: 18.19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001501/0.2652, allocations: 253.2 kB / 375.6 MB, free: 17.93 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/2.052, allocations: 0 / 375.6 MB, free: 17.93 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToBoolean.threshold,table.realToBoolean.u,table.realToBoolean.y,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],table.y,time