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.00106/0.00106, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.00123, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 57.53 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1098, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.004197/0.114, allocations: 1.908 MB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002172/0.1162, allocations: 1.208 MB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001765/0.1164, allocations: 4 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000542/0.117, allocations: 155.5 kB / 360.8 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004184/0.1175, allocations: 155.4 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.118, allocations: 171.4 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002889/0.1183, allocations: 187.5 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.1184, allocations: 29.55 kB / 361.4 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1186, allocations: 83.62 kB / 361.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001259/0.1187, allocations: 67.7 kB / 361.5 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.891e-05/0.1187, allocations: 8 kB / 361.5 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001833/0.1189, allocations: 63.89 kB / 361.6 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.472e-05/0.119, allocations: 39.84 kB / 361.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.812e-05/0.1191, allocations: 79.47 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004041/0.1195, allocations: 203.6 kB / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1195, allocations: 0 / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1195, allocations: 0 / 361.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.275e-06/0.1196, allocations: 0 / 361.9 MB, free: 9.625 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.001024/0.1206, allocations: 0.5156 MB / 362.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.1206, allocations: 16.02 kB / 362.4 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.937e-05/0.1207, allocations: 34.75 kB / 362.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.242e-05/0.1208, allocations: 24.66 kB / 362.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003998/0.1212, allocations: 266.8 kB / 362.8 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.1212, allocations: 4.375 kB / 362.8 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.64e-05/0.1212, allocations: 11.94 kB / 362.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000376/0.1216, allocations: 146.7 kB / 362.9 MB, free: 8.484 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.1217, allocations: 7.938 kB / 362.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.1217, allocations: 0 / 362.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.199e-05/0.1217, allocations: 7.984 kB / 362.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001156/0.1218, allocations: 31.98 kB / 363 MB, free: 8.438 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007136/0.1225, allocations: 362.3 kB / 363.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.1228, allocations: 111.9 kB / 363.4 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.387e-05/0.1229, allocations: 42.56 kB / 363.5 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.474e-05/0.1229, allocations: 4 kB / 363.5 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001712/0.1231, allocations: 71.33 kB / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.593e-06/0.1231, allocations: 0 / 363.5 MB, free: 7.754 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.000378/0.1235, allocations: 141.4 kB / 363.7 MB, free: 7.609 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.301e-05/0.1236, allocations: 132.8 kB / 363.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003001/0.1239, allocations: 284.8 kB / 364.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.1239, allocations: 25.7 kB / 364.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.359e-05/0.124, allocations: 116.1 kB / 364.2 MB, free: 7.016 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.742e-05/0.124, allocations: 23.81 kB / 364.3 MB, free: 6.992 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.148e-05/0.1241, allocations: 37.64 kB / 364.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1242, allocations: 326.8 kB / 364.6 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.433e-05/0.1243, allocations: 19.98 kB / 364.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.1244, allocations: 73.94 kB / 364.7 MB, free: 6.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001248/0.1246, allocations: 76.25 kB / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1246, allocations: 0 / 364.8 MB, free: 6.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002025/0.1248, allocations: 117.4 kB / 364.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.1248, allocations: 6.812 kB / 364.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.1248, allocations: 4 kB / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1248, allocations: 0 / 364.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.935e-05/0.1249, allocations: 16.3 kB / 364.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.125, allocations: 0 / 364.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.606e-05/0.125, allocations: 19.97 kB / 364.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.1251, allocations: 8 kB / 364.9 MB, free: 6.246 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.0001261/0.1252, allocations: 145.7 kB / 365.1 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.188e-05/0.1253, allocations: 61.5 kB / 365.1 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.774e-05/0.1253, allocations: 25.7 kB / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1254, allocations: 0 / 365.2 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.1254, allocations: 4 kB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1254, allocations: 3.938 kB / 365.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002064/0.1256, allocations: 229.5 kB / 365.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1256, allocations: 4 kB / 365.4 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.336e-05/0.1256, allocations: 11.92 kB / 365.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.1257, allocations: 0 / 365.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.095e-05/0.1257, allocations: 4 kB / 365.4 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1257, allocations: 3.938 kB / 365.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1257, allocations: 0 / 365.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.1259, allocations: 158.5 kB / 365.6 MB, free: 5.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.636e-05/0.126, allocations: 108.8 kB / 365.7 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/0.1261, allocations: 4 kB / 365.7 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.559e-05/0.1261, allocations: 7.938 kB / 365.7 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.513e-05/0.1262, allocations: 11.92 kB / 365.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.49e-05/0.1262, allocations: 8 kB / 365.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002054/0.1264, allocations: 196.5 kB / 365.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1264, allocations: 0 / 365.9 MB, free: 5.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002612/0.1267, allocations: 32 kB / 365.9 MB, free: 5.137 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.001416/0.1281, allocations: 0.9895 MB / 366.9 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.1283, allocations: 75.84 kB / 367 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1283, allocations: 0 / 367 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.083e-05/0.1284, allocations: 27.98 kB / 367 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.1288, allocations: 75.56 kB / 367.1 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.131, allocations: 1.95 MB / 369.1 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003108/0.1313, allocations: 0.7241 MB / 369.8 MB, free: 1.262 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.809e-05/0.1314, allocations: 29.52 kB / 369.8 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.124e-05/0.1315, allocations: 51.42 kB / 369.9 MB, free: 1.184 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1315, allocations: 4 kB / 369.9 MB, free: 1.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1836/0.3151, allocations: 4.579 MB / 374.4 MB, free: 19.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.626/7.941, allocations: 8.703 kB / 374.5 MB, free: 19.49 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