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.001195/0.001195, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 64.36 kB / 307 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1183, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.004753/0.1231, allocations: 1.885 MB / 359.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.1258, allocations: 1.29 MB / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002831/0.1261, allocations: 0 / 360.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004528/0.1266, allocations: 71.66 kB / 360.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005568/0.1272, allocations: 127.4 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008784/0.1281, allocations: 230.7 kB / 361.2 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000343/0.1284, allocations: 175.5 kB / 361.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1286, allocations: 37.52 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.1288, allocations: 71.7 kB / 361.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000154/0.1289, allocations: 79.62 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.272e-05/0.129, allocations: 12 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002103/0.1292, allocations: 67.89 kB / 361.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001081/0.1293, allocations: 51.83 kB / 361.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.1294, allocations: 79.47 kB / 361.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004288/0.1299, allocations: 235.5 kB / 362 MB, free: 9.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1299, allocations: 4 kB / 362 MB, free: 9.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1299, allocations: 3.938 kB / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.165e-05/0.1299, allocations: 0 / 362 MB, free: 9.59 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.0008049/0.1307, allocations: 0.5311 MB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.1308, allocations: 8.031 kB / 362.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.239e-05/0.1308, allocations: 46.73 kB / 362.6 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.195e-05/0.1309, allocations: 24.66 kB / 362.6 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.1313, allocations: 295.5 kB / 362.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.1313, allocations: 384 / 362.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.461e-05/0.1313, allocations: 15.94 kB / 362.9 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003364/0.1317, allocations: 155.6 kB / 363 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.1317, allocations: 4 kB / 363.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.527e-05/0.1317, allocations: 3.984 kB / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.1317, allocations: 0 / 363.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.1319, allocations: 35.92 kB / 363.1 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005327/0.1324, allocations: 390.3 kB / 363.5 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.1327, allocations: 115.9 kB / 363.6 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.883e-05/0.1328, allocations: 54.56 kB / 363.6 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.1328, allocations: 7.875 kB / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.133, allocations: 79.38 kB / 363.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.133, allocations: 0 / 363.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003977/0.1335, allocations: 153.5 kB / 363.9 MB, free: 7.457 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/0.1336, allocations: 162.2 kB / 364 MB, free: 7.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003628/0.1339, allocations: 338.6 kB / 364.4 MB, free: 6.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.134, allocations: 29.7 kB / 364.4 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.708e-05/0.1341, allocations: 128.1 kB / 364.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.693e-05/0.1341, allocations: 15.81 kB / 364.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.429e-05/0.1342, allocations: 29.7 kB / 364.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1343, allocations: 338.9 kB / 364.9 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.28e-05/0.1344, allocations: 23.98 kB / 364.9 MB, free: 6.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.1345, allocations: 82.92 kB / 365 MB, free: 6.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.1346, allocations: 84.22 kB / 365.1 MB, free: 6.137 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.1347, allocations: 4 kB / 365.1 MB, free: 6.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002268/0.1349, allocations: 125.2 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1349, allocations: 8 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.1349, allocations: 0 / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.1349, allocations: 4.125 kB / 365.2 MB, free: 5.992 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001028/0.135, allocations: 23.92 kB / 365.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.1351, allocations: 4 kB / 365.2 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.377e-05/0.1351, allocations: 15.84 kB / 365.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.955e-06/0.1352, allocations: 0 / 365.3 MB, free: 5.949 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.0001366/0.1353, allocations: 158 kB / 365.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.341e-05/0.1354, allocations: 69.44 kB / 365.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.125e-05/0.1354, allocations: 25.7 kB / 365.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.1355, allocations: 8 kB / 365.5 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1355, allocations: 4 kB / 365.5 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1355, allocations: 3.938 kB / 365.5 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001892/0.1357, allocations: 245.5 kB / 365.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.1357, allocations: 0 / 365.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.834e-05/0.1357, allocations: 15.94 kB / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1358, allocations: 0 / 365.8 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.317e-05/0.1358, allocations: 7.984 kB / 365.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.1358, allocations: 0 / 365.8 MB, free: 5.359 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.1358, allocations: 3.938 kB / 365.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002394/0.136, allocations: 166.5 kB / 366 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.076e-05/0.1361, allocations: 112.8 kB / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.955e-05/0.1362, allocations: 0 / 366.1 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.452e-05/0.1362, allocations: 11.98 kB / 366.1 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.843e-05/0.1363, allocations: 7.938 kB / 366.1 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.596e-05/0.1363, allocations: 11.98 kB / 366.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002163/0.1365, allocations: 249.9 kB / 366.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1365, allocations: 0 / 366.3 MB, free: 4.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1368, allocations: 31.98 kB / 366.4 MB, free: 4.734 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.001305/0.1381, allocations: 1.017 MB / 367.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.1383, allocations: 79.83 kB / 367.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1384, allocations: 0 / 367.5 MB, free: 3.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.593e-05/0.1384, allocations: 31.98 kB / 367.5 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.1388, allocations: 65.55 kB / 367.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002277/0.1411, allocations: 2.222 MB / 369.8 MB, free: 1.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.1414, allocations: 0.7397 MB / 370.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.305e-05/0.1415, allocations: 29.52 kB / 370.5 MB, free: 0.5195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.603e-05/0.1416, allocations: 59.42 kB / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of SimCode: time 1.9e-07/0.1416, allocations: 0 / 370.6 MB, free: 472 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2968/0.4384, allocations: 5.254 MB / 375.9 MB, free: 19.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.519, allocations: 13.95 kB / 375.9 MB, free: 19.57 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