Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001501/0.001501, allocations: 181.5 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.247/2.247, allocations: 205.2 MB / 219 MB, free: 9.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001123/0.001123, allocations: 90.55 kB / 267.1 MB, free: 9.266 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1099/0.1099, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.708e-05/3.712e-05, allocations: 8 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09646/0.09653, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4595/0.5561, allocations: 81.76 MB / 0.5061 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003117/0.5565, allocations: 84.7 kB / 0.5062 GB, free: 11.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02422/0.5807, allocations: 5.931 MB / 0.512 GB, free: 9.375 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5808, allocations: 0 / 0.512 GB, free: 9.375 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.201e-05/0.5808, allocations: 3.719 kB / 0.512 GB, free: 9.375 MB / 330.7 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.0007255/0.5815, allocations: 498.3 kB / 0.5124 GB, free: 8.898 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.5816, allocations: 10.69 kB / 0.5125 GB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.377e-05/0.5817, allocations: 37 kB / 0.5125 GB, free: 8.859 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.374e-05/0.5818, allocations: 19.41 kB / 0.5125 GB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/0.5823, allocations: 294.1 kB / 0.5128 GB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.692e-05/0.5824, allocations: 7.812 kB / 0.5128 GB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.571e-05/0.5824, allocations: 10.62 kB / 0.5128 GB, free: 8.59 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.5828, allocations: 155.4 kB / 0.513 GB, free: 8.48 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.5828, allocations: 4 kB / 0.513 GB, free: 8.477 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.992e-05/0.5829, allocations: 7.922 kB / 0.513 GB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.725e-06/0.5829, allocations: 3.781 kB / 0.513 GB, free: 8.469 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.583, allocations: 37.23 kB / 0.513 GB, free: 8.461 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007678/0.5838, allocations: 403.4 kB / 0.5134 GB, free: 8.125 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002389/0.5841, allocations: 120.1 kB / 0.5135 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.255e-05/0.5842, allocations: 40.02 kB / 0.5135 GB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.5842, allocations: 7.781 kB / 0.5136 GB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001951/0.5844, allocations: 73.48 kB / 0.5136 GB, free: 7.953 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.637e-06/0.5845, allocations: 0 / 0.5136 GB, free: 7.953 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004107/0.5849, allocations: 127.8 kB / 0.5137 GB, free: 7.895 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.24e-05/0.585, allocations: 161.9 kB / 0.5139 GB, free: 7.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004802/0.5855, allocations: 297.3 kB / 0.5142 GB, free: 7.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.5855, allocations: 28.64 kB / 0.5142 GB, free: 7.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.224e-05/0.5856, allocations: 135 kB / 0.5143 GB, free: 7.449 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.524e-05/0.5857, allocations: 19.14 kB / 0.5144 GB, free: 7.438 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.869e-06/0.5857, allocations: 3.188 kB / 0.5144 GB, free: 7.438 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.528e-05/0.5858, allocations: 329.9 kB / 0.5147 GB, free: 7.117 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.996e-05/0.5858, allocations: 27.23 kB / 0.5147 GB, free: 7.113 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.586, allocations: 87.77 kB / 0.5148 GB, free: 7.043 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.032e-05/0.5861, allocations: 29.39 kB / 0.5148 GB, free: 7.039 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5861, allocations: 0 / 0.5148 GB, free: 7.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002913/0.5864, allocations: 128.5 kB / 0.5149 GB, free: 6.977 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.5864, allocations: 3.844 kB / 0.5149 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.5865, allocations: 0 / 0.5149 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.5865, allocations: 3.844 kB / 0.5149 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.5867, allocations: 26.42 kB / 0.515 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.5867, allocations: 0 / 0.515 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.5869, allocations: 7.859 kB / 0.515 GB, free: 6.965 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.5869, allocations: 3.812 kB / 0.515 GB, free: 6.965 MB / 330.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000125/0.587, allocations: 135.2 kB / 0.5151 GB, free: 6.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.5872, allocations: 68.44 kB / 0.5152 GB, free: 6.789 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003302/0.5875, allocations: 115.1 kB / 0.5153 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.5876, allocations: 3.781 kB / 0.5153 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.5876, allocations: 0 / 0.5153 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.5876, allocations: 3.938 kB / 0.5153 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.5879, allocations: 252.4 kB / 0.5155 GB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.5879, allocations: 0 / 0.5155 GB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.588, allocations: 15.56 kB / 0.5155 GB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.144e-06/0.588, allocations: 4.062 kB / 0.5155 GB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.5881, allocations: 11.05 kB / 0.5156 GB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.5881, allocations: 0 / 0.5156 GB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.5881, allocations: 3.906 kB / 0.5156 GB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.5884, allocations: 192.2 kB / 0.5157 GB, free: 6.359 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001508/0.5886, allocations: 126.6 kB / 0.5159 GB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.923e-05/0.5886, allocations: 0 / 0.5159 GB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.5888, allocations: 7.031 kB / 0.5159 GB, free: 6.242 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.527e-05/0.5889, allocations: 11.67 kB / 0.5159 GB, free: 6.238 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.629e-05/0.5889, allocations: 0 / 0.5159 GB, free: 6.238 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000339/0.5892, allocations: 245 kB / 0.5161 GB, free: 6.137 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5892, allocations: 0 / 0.5161 GB, free: 6.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004188/0.5897, allocations: 48.48 kB / 0.5162 GB, free: 6.125 MB / 330.7 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001632/0.5913, allocations: 1.155 MB / 0.5173 GB, free: 5.102 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003917/0.5918, allocations: 88.47 kB / 0.5174 GB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.5918, allocations: 0 / 0.5174 GB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.5919, allocations: 32.28 kB / 0.5174 GB, free: 5.082 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005647/0.5925, allocations: 58 kB / 0.5175 GB, free: 5.066 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009994/0.5935, allocations: 358.8 kB / 0.5178 GB, free: 4.848 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.5938, allocations: 0.7458 MB / 0.5185 GB, free: 4.121 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001533/0.5939, allocations: 32.97 kB / 0.5186 GB, free: 4.105 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001403/0.5941, allocations: 64.5 kB / 0.5186 GB, free: 4.086 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5941, allocations: 0 / 0.5186 GB, free: 4.086 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.6213, allocations: 4.769 MB / 0.5233 GB, free: 224 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003007/0.6217, allocations: 213.1 kB / 0.5235 GB, free: 16 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.691/3.313, allocations: 3.938 kB / 0.5235 GB, free: 15.99 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat