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.001143/0.001142, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001269/0.001269, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 246.3 MB, free: 9.066 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001102/0.001102, allocations: 59.66 kB / 306.4 MB, free: 0.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1043, allocations: 50.52 MB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003116/0.1075, allocations: 1.961 MB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.1095, allocations: 1.282 MB / 360.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.1096, allocations: 7.938 kB / 360.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.1099, allocations: 55.8 kB / 360.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.1102, allocations: 107.6 kB / 360.3 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005151/0.1107, allocations: 199.5 kB / 360.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001739/0.1109, allocations: 171.5 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.1111, allocations: 25.55 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.908e-05/0.1112, allocations: 71.69 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1113, allocations: 75.62 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.1113, allocations: 4 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001295/0.1114, allocations: 59.95 kB / 360.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.208e-05/0.1115, allocations: 51.77 kB / 360.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.62e-05/0.1116, allocations: 75.42 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00029/0.1119, allocations: 239.5 kB / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1119, allocations: 0 / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.112, allocations: 0 / 361.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.112, allocations: 0 / 361.2 MB, free: 9.84 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.0007603/0.1127, allocations: 0.5333 MB / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.1128, allocations: 12.03 kB / 361.8 MB, free: 9.242 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.122e-05/0.1128, allocations: 42.73 kB / 361.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.588e-05/0.1129, allocations: 24.66 kB / 361.8 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003602/0.1133, allocations: 287.6 kB / 362.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.1133, allocations: 4.375 kB / 362.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.938e-05/0.1133, allocations: 11.94 kB / 362.1 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003431/0.1136, allocations: 155.6 kB / 362.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.1137, allocations: 0 / 362.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.1137, allocations: 0 / 362.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1137, allocations: 4 kB / 362.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001118/0.1138, allocations: 43.91 kB / 362.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.1143, allocations: 398.2 kB / 362.7 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002449/0.1146, allocations: 119.8 kB / 362.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.612e-05/0.1147, allocations: 46.56 kB / 362.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.572e-05/0.1147, allocations: 0 / 362.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002458/0.115, allocations: 79.38 kB / 363 MB, free: 7.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.382e-06/0.115, allocations: 0 / 363 MB, free: 7.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003771/0.1154, allocations: 153.5 kB / 363.1 MB, free: 7.715 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.1155, allocations: 166.2 kB / 363.3 MB, free: 7.516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003401/0.1158, allocations: 334.6 kB / 363.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.1159, allocations: 33.69 kB / 363.6 MB, free: 7.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.166e-05/0.116, allocations: 128.1 kB / 363.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.116, allocations: 15.81 kB / 363.8 MB, free: 6.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.116, allocations: 29.7 kB / 363.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.1162, allocations: 338.8 kB / 364.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.127e-05/0.1162, allocations: 23.98 kB / 364.2 MB, free: 6.598 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001022/0.1164, allocations: 86.8 kB / 364.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001531/0.1165, allocations: 84.22 kB / 364.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1165, allocations: 0 / 364.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002193/0.1168, allocations: 121.3 kB / 364.5 MB, free: 6.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.1168, allocations: 8 kB / 364.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.1168, allocations: 0 / 364.5 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.1168, allocations: 4.125 kB / 364.5 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.1169, allocations: 27.92 kB / 364.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.1169, allocations: 4 kB / 364.5 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.504e-05/0.117, allocations: 11.84 kB / 364.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-06/0.117, allocations: 4.312 kB / 364.5 MB, free: 6.207 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.0001268/0.1172, allocations: 169.7 kB / 364.7 MB, free: 6.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.767e-05/0.1172, allocations: 61.45 kB / 364.7 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.421e-05/0.1173, allocations: 25.7 kB / 364.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.1173, allocations: 8.062 kB / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.1173, allocations: 0 / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1173, allocations: 3.938 kB / 364.8 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002172/0.1176, allocations: 245.5 kB / 365 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.1176, allocations: 4 kB / 365 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.339e-05/0.1176, allocations: 11.94 kB / 365 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.1176, allocations: 3.984 kB / 365 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.1177, allocations: 4 kB / 365 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.1177, allocations: 3.938 kB / 365 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1177, allocations: 0 / 365 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.1179, allocations: 178.3 kB / 365.2 MB, free: 5.414 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.118, allocations: 104.9 kB / 365.3 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.385e-05/0.1181, allocations: 7.984 kB / 365.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.272e-05/0.1181, allocations: 4 kB / 365.3 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.1182, allocations: 11.92 kB / 365.3 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.589e-05/0.1182, allocations: 4 kB / 365.3 MB, free: 5.266 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.1184, allocations: 253.9 kB / 365.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1184, allocations: 0 / 365.6 MB, free: 5.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1187, allocations: 35.98 kB / 365.6 MB, free: 4.984 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.001346/0.1201, allocations: 1.014 MB / 366.6 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002021/0.1203, allocations: 71.84 kB / 366.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1203, allocations: 0 / 366.7 MB, free: 4.004 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.139e-05/0.1204, allocations: 31.98 kB / 366.7 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003974/0.1208, allocations: 69.88 kB / 366.8 MB, free: 3.902 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002363/0.1232, allocations: 2.256 MB / 369.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.1234, allocations: 0.7516 MB / 369.8 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.955e-05/0.1235, allocations: 25.55 kB / 369.8 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.549e-05/0.1236, allocations: 63.41 kB / 369.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1236, allocations: 0 / 369.9 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.479/1.602, allocations: 5.012 MB / 374.9 MB, free: 19.1 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002017/1.602, allocations: 267.1 kB / 375.2 MB, free: 18.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/3.459, allocations: 0 / 375.2 MB, free: 18.82 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