Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_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.002341/0.002341, allocations: 181.7 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.094/2.094, allocations: 205.2 MB / 219 MB, free: 9.137 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.001114/0.001114, allocations: 91.78 kB / 267.1 MB, free: 9.258 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.1079/0.1079, allocations: 12.58 MB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.727e-05/3.736e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1036, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4765/0.5802, allocations: 78.23 MB / 0.5026 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.5806, allocations: 76.69 kB / 0.5027 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00536/0.586, allocations: 1.445 MB / 0.5041 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.586, allocations: 0 / 0.5041 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.586, allocations: 0 / 0.5041 GB, free: 11.63 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003685/0.5864, allocations: 346.9 kB / 0.5045 GB, free: 11.28 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.5865, allocations: 15.5 kB / 0.5045 GB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.745e-05/0.5865, allocations: 41.44 kB / 0.5045 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.5866, allocations: 15.44 kB / 0.5045 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001907/0.5868, allocations: 188.3 kB / 0.5047 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.865e-06/0.5868, allocations: 0 / 0.5047 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.845e-05/0.5868, allocations: 7.797 kB / 0.5047 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002493/0.5871, allocations: 102.6 kB / 0.5048 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.659e-06/0.5871, allocations: 4 kB / 0.5048 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.5871, allocations: 2.719 kB / 0.5048 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.5871, allocations: 0 / 0.5048 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.314e-05/0.5872, allocations: 10.72 kB / 0.5048 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005163/0.5877, allocations: 270.7 kB / 0.5051 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001019/0.5879, allocations: 44.5 kB / 0.5051 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.255e-05/0.5879, allocations: 13.59 kB / 0.5051 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.588, allocations: 3.062 kB / 0.5051 GB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.588, allocations: 33.38 kB / 0.5052 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 3.246e-06/0.5881, allocations: 3.844 kB / 0.5052 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002851/0.5884, allocations: 52.23 kB / 0.5052 GB, free: 10.51 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.5884, allocations: 83.67 kB / 0.5053 GB, free: 10.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.5887, allocations: 127.3 kB / 0.5054 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.898e-05/0.5887, allocations: 29.27 kB / 0.5055 GB, free: 10.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.5888, allocations: 87.8 kB / 0.5055 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.636e-05/0.5888, allocations: 0 / 0.5055 GB, free: 10.21 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.5888, allocations: 0 / 0.5055 GB, free: 10.21 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.768e-05/0.5889, allocations: 328.8 kB / 0.5059 GB, free: 9.891 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.338e-05/0.589, allocations: 4.062 kB / 0.5059 GB, free: 9.887 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.767e-05/0.589, allocations: 17.12 kB / 0.5059 GB, free: 9.871 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.726e-05/0.5891, allocations: 3.844 kB / 0.5059 GB, free: 9.871 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.5891, allocations: 2.906 kB / 0.5059 GB, free: 9.871 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001984/0.5893, allocations: 47.11 kB / 0.5059 GB, free: 9.832 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.5894, allocations: 7.531 kB / 0.5059 GB, free: 9.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.5894, allocations: 11.08 kB / 0.5059 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.5894, allocations: 0 / 0.5059 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001488/0.5896, allocations: 3.812 kB / 0.5059 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.5896, allocations: 3.688 kB / 0.5059 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.948e-05/0.5897, allocations: 2.859 kB / 0.506 GB, free: 9.824 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.5898, allocations: 3.844 kB / 0.506 GB, free: 9.824 MB / 330.7 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 () * 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 8.376e-05/0.5899, allocations: 116.1 kB / 0.5061 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.59, allocations: 37.14 kB / 0.5061 GB, free: 9.672 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.087e-05/0.5901, allocations: 17.23 kB / 0.5061 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.5901, allocations: 0 / 0.5061 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.5901, allocations: 0 / 0.5061 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.98e-06/0.5901, allocations: 0 / 0.5061 GB, free: 9.668 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003018/0.5905, allocations: 172.5 kB / 0.5063 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.5905, allocations: 0 / 0.5063 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.914e-05/0.5906, allocations: 10.16 kB / 0.5063 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.5906, allocations: 0 / 0.5063 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.5906, allocations: 0 / 0.5063 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5907, allocations: 0 / 0.5063 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.5907, allocations: 7.844 kB / 0.5063 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001908/0.5909, allocations: 165.1 kB / 0.5065 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.84e-05/0.591, allocations: 90.03 kB / 0.5065 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.122e-05/0.591, allocations: 3.719 kB / 0.5065 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.5913, allocations: 0 / 0.5065 GB, free: 9.211 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.5913, allocations: 10.38 kB / 0.5066 GB, free: 9.207 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.748e-06/0.5914, allocations: 0 / 0.5066 GB, free: 9.207 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.5915, allocations: 114.3 kB / 0.5067 GB, free: 9.129 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.92e-07/0.5915, allocations: 0 / 0.5067 GB, free: 9.129 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008233/0.5924, allocations: 3.844 kB / 0.5067 GB, free: 9.129 MB / 330.7 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 () * 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.0005122/0.5929, allocations: 0.7564 MB / 0.5074 GB, free: 8.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001339/0.5931, allocations: 22.27 kB / 0.5074 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5931, allocations: 0 / 0.5074 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.965e-05/0.5932, allocations: 3.844 kB / 0.5074 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00051/0.5937, allocations: 21.95 kB / 0.5075 GB, free: 8.359 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008394/0.5946, allocations: 141.2 kB / 0.5076 GB, free: 8.219 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/0.5948, allocations: 0.6921 MB / 0.5083 GB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.851e-05/0.5949, allocations: 7.75 kB / 0.5083 GB, free: 7.52 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.278e-05/0.595, allocations: 17.47 kB / 0.5083 GB, free: 7.516 MB / 330.7 MB Notification: Performance of SimCode: time 1.562e-06/0.5951, allocations: 0 / 0.5083 GB, free: 7.516 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.6176, allocations: 1.361 MB / 0.5096 GB, free: 7.199 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002762/0.618, allocations: 178.1 kB / 0.5098 GB, free: 6.973 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.531/3.149, allocations: 0 / 0.5098 GB, free: 6.973 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat