Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_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.0009486/0.0009487, allocations: 96.91 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 207.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.3 MB / 245.9 MB, free: 12.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002428/0.0002431, allocations: 4 kB / 306.7 MB, free: 1.492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1007, allocations: 51.48 MB / 358.2 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.001756/0.1025, allocations: 1.262 MB / 359.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008023/0.1033, allocations: 0.5029 MB / 360 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.89e-05/0.1034, allocations: 7.938 kB / 360 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.092e-05/0.1034, allocations: 4 kB / 360 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.1035, allocations: 7.922 kB / 360 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.1038, allocations: 47.83 kB / 360 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.77e-05/0.1039, allocations: 31.95 kB / 360.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.299e-05/0.104, allocations: 12.17 kB / 360.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.1041, allocations: 23.91 kB / 360.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.741e-05/0.1042, allocations: 19.86 kB / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.032e-05/0.1042, allocations: 0 / 360.1 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.222e-05/0.1043, allocations: 11.94 kB / 360.1 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.134e-05/0.1043, allocations: 15.92 kB / 360.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.595e-05/0.1043, allocations: 33.7 kB / 360.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.111e-05/0.1044, allocations: 39.92 kB / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.1044, allocations: 0 / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1044, allocations: 0 / 360.2 MB, free: 11.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1045, allocations: 0 / 360.2 MB, free: 11.97 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004328/0.1049, allocations: 367.2 kB / 360.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.1049, allocations: 16.03 kB / 360.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.261e-05/0.105, allocations: 30.56 kB / 360.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001425/0.1051, allocations: 19.89 kB / 360.6 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001898/0.1053, allocations: 194.9 kB / 360.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.515e-06/0.1053, allocations: 3.938 kB / 360.8 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.1054, allocations: 8 kB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.1056, allocations: 105 kB / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.1057, allocations: 0 / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.1057, allocations: 0 / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1057, allocations: 0 / 360.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.868e-05/0.1058, allocations: 27.92 kB / 361 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002746/0.106, allocations: 273.7 kB / 361.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.482e-05/0.1061, allocations: 45.16 kB / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.512e-05/0.1061, allocations: 0 / 361.3 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.016e-05/0.1062, allocations: 34.56 kB / 361.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 7.62e-07/0.1062, allocations: 4.062 kB / 361.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000214/0.1064, allocations: 69.52 kB / 361.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.1065, allocations: 81.11 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.1066, allocations: 144.6 kB / 361.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.1066, allocations: 29.7 kB / 361.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.1067, allocations: 88.14 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.145e-05/0.1067, allocations: 3.906 kB / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.1067, allocations: 0 / 361.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1068, allocations: 330.7 kB / 362 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.711e-05/0.1068, allocations: 4 kB / 362.1 MB, free: 9.887 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.679e-05/0.1069, allocations: 33.64 kB / 362.1 MB, free: 9.848 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.92e-05/0.1069, allocations: 8 kB / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.1069, allocations: 0 / 362.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001131/0.1071, allocations: 57.67 kB / 362.2 MB, free: 9.777 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.1071, allocations: 4.125 kB / 362.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1071, allocations: 11.98 kB / 362.2 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.1071, allocations: 3.938 kB / 362.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.408e-05/0.1072, allocations: 4 kB / 362.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1072, allocations: 0 / 362.2 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.521e-05/0.1072, allocations: 7.984 kB / 362.2 MB, free: 9.746 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.1073, allocations: 0 / 362.2 MB, free: 9.746 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.389e-05/0.1073, allocations: 121.8 kB / 362.3 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.624e-05/0.1074, allocations: 41.59 kB / 362.3 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.1074, allocations: 15.83 kB / 362.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.1074, allocations: 0 / 362.4 MB, free: 9.551 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.1075, allocations: 7.938 kB / 362.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.1075, allocations: 4 kB / 362.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1076, allocations: 169.6 kB / 362.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1076, allocations: 0 / 362.5 MB, free: 9.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-05/0.1077, allocations: 11.98 kB / 362.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.1077, allocations: 3.938 kB / 362.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.302e-06/0.1077, allocations: 0 / 362.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1077, allocations: 4.031 kB / 362.6 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.1077, allocations: 4 kB / 362.6 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001832/0.1079, allocations: 170 kB / 362.7 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.167e-05/0.108, allocations: 93 kB / 362.8 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.108, allocations: 8.031 kB / 362.8 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.117e-05/0.1081, allocations: 3.984 kB / 362.8 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.106e-05/0.1081, allocations: 4 kB / 362.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-06/0.1081, allocations: 0 / 362.8 MB, free: 8.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.075e-05/0.1082, allocations: 107.2 kB / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1082, allocations: 0 / 362.9 MB, free: 8.879 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002154/0.1084, allocations: 7.953 kB / 362.9 MB, free: 8.871 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004219/0.1089, allocations: 0.7782 MB / 363.7 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.109, allocations: 31.95 kB / 363.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.109, allocations: 0 / 363.8 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.109, allocations: 8 kB / 363.8 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.1093, allocations: 23.91 kB / 363.8 MB, free: 7.996 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000762/0.1101, allocations: 0.645 MB / 364.4 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.1103, allocations: 0.6926 MB / 365.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.133e-05/0.1104, allocations: 7.984 kB / 365.1 MB, free: 6.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.692e-05/0.1104, allocations: 15.5 kB / 365.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1104, allocations: 0 / 365.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009753/0.1202, allocations: 1.343 MB / 366.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.1204, allocations: 202.4 kB / 366.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/1.751, allocations: 0 / 366.7 MB, free: 5.117 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat