Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.001744/0.001744, 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.362/2.362, 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.001125/0.001125, allocations: 85.58 kB / 267.1 MB, free: 9.277 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.1233/0.1233, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.973e-05/4.962e-05, allocations: 4 kB / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 50.38 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5336/0.65, allocations: 81.75 MB / 0.5061 GB, free: 11.97 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004266/0.6505, allocations: 79.03 kB / 0.5062 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03765/0.6882, allocations: 5.789 MB / 0.5118 GB, free: 9.793 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6882, allocations: 0 / 0.5118 GB, free: 9.793 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.046e-05/0.6883, allocations: 7.219 kB / 0.5118 GB, free: 9.789 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.000711/0.689, allocations: 480.6 kB / 0.5123 GB, free: 9.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.6891, allocations: 7.812 kB / 0.5123 GB, free: 9.328 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.869e-05/0.6891, allocations: 40.53 kB / 0.5123 GB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.972e-05/0.6892, allocations: 19.41 kB / 0.5123 GB, free: 9.273 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005291/0.6897, allocations: 257.2 kB / 0.5126 GB, free: 9.047 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.782e-05/0.6898, allocations: 3.953 kB / 0.5126 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.829e-05/0.6898, allocations: 15.62 kB / 0.5126 GB, free: 9.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.6902, allocations: 152.7 kB / 0.5127 GB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.6903, allocations: 0 / 0.5127 GB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.796e-05/0.6903, allocations: 0 / 0.5127 GB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.6903, allocations: 3.875 kB / 0.5128 GB, free: 8.93 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.6904, allocations: 32.73 kB / 0.5128 GB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006979/0.6911, allocations: 371.9 kB / 0.5131 GB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.6914, allocations: 105.4 kB / 0.5132 GB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.235e-05/0.6915, allocations: 44.75 kB / 0.5133 GB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.6915, allocations: 3.844 kB / 0.5133 GB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.6917, allocations: 76.73 kB / 0.5134 GB, free: 8.426 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 4.418e-06/0.6917, allocations: 0 / 0.5134 GB, free: 8.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003817/0.6921, allocations: 116.9 kB / 0.5135 GB, free: 8.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.285e-05/0.6922, allocations: 131.8 kB / 0.5136 GB, free: 8.215 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.6926, allocations: 235.2 kB / 0.5138 GB, free: 8.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.6926, allocations: 29.58 kB / 0.5138 GB, free: 8.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.722e-05/0.6927, allocations: 118 kB / 0.514 GB, free: 7.984 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.6928, allocations: 19.11 kB / 0.514 GB, free: 7.973 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.486e-06/0.6928, allocations: 3.5 kB / 0.514 GB, free: 7.973 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.782e-05/0.6929, allocations: 329.4 kB / 0.5143 GB, free: 7.652 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.382e-05/0.693, allocations: 18.62 kB / 0.5143 GB, free: 7.652 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.971e-05/0.6931, allocations: 75 kB / 0.5144 GB, free: 7.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.002e-05/0.6932, allocations: 26.11 kB / 0.5144 GB, free: 7.582 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.6932, allocations: 0 / 0.5144 GB, free: 7.582 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002719/0.6935, allocations: 123.1 kB / 0.5145 GB, free: 7.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.6935, allocations: 7.688 kB / 0.5145 GB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.6935, allocations: 0 / 0.5145 GB, free: 7.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.498e-05/0.6936, allocations: 4.125 kB / 0.5145 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001443/0.6937, allocations: 11.53 kB / 0.5145 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.6938, allocations: 3.844 kB / 0.5146 GB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.6939, allocations: 10.83 kB / 0.5146 GB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.6939, allocations: 3.844 kB / 0.5146 GB, free: 7.512 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 9.602e-05/0.694, allocations: 127.4 kB / 0.5147 GB, free: 7.387 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001101/0.6941, allocations: 67.34 kB / 0.5148 GB, free: 7.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.6945, allocations: 112 kB / 0.5149 GB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.6945, allocations: 0 / 0.5149 GB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.6945, allocations: 3.812 kB / 0.5149 GB, free: 7.289 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.6945, allocations: 3.984 kB / 0.5149 GB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002379/0.6947, allocations: 230.5 kB / 0.5151 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.6948, allocations: 0 / 0.5151 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.208e-05/0.6948, allocations: 7.5 kB / 0.5151 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.264e-06/0.6949, allocations: 0 / 0.5151 GB, free: 7.066 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.6949, allocations: 7.781 kB / 0.5151 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.6949, allocations: 0 / 0.5151 GB, free: 7.062 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.6949, allocations: 3.938 kB / 0.5151 GB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.6952, allocations: 189.7 kB / 0.5153 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.6954, allocations: 112.4 kB / 0.5154 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.6954, allocations: 3.844 kB / 0.5154 GB, free: 6.805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.6955, allocations: 7.812 kB / 0.5154 GB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.678e-05/0.6956, allocations: 15.55 kB / 0.5154 GB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.556e-05/0.6956, allocations: 3.844 kB / 0.5154 GB, free: 6.797 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002564/0.6959, allocations: 187 kB / 0.5156 GB, free: 6.703 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6959, allocations: 0 / 0.5156 GB, free: 6.703 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003682/0.6963, allocations: 45.39 kB / 0.5156 GB, free: 6.691 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.001542/0.6979, allocations: 1.114 MB / 0.5167 GB, free: 5.691 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003437/0.6983, allocations: 72.05 kB / 0.5168 GB, free: 5.68 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6983, allocations: 256 / 0.5168 GB, free: 5.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.455e-05/0.6984, allocations: 34.67 kB / 0.5168 GB, free: 5.676 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.6989, allocations: 54.31 kB / 0.5169 GB, free: 5.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008597/0.6998, allocations: 296.5 kB / 0.5172 GB, free: 5.453 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.7001, allocations: 0.742 MB / 0.5179 GB, free: 4.723 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001387/0.7002, allocations: 32.98 kB / 0.5179 GB, free: 4.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.7003, allocations: 52.83 kB / 0.518 GB, free: 4.688 MB / 330.7 MB Notification: Performance of SimCode: time 1.233e-06/0.7004, allocations: 0 / 0.518 GB, free: 4.688 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.7267, allocations: 4.114 MB / 0.522 GB, free: 1.805 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001678/0.727, allocations: 217.1 kB / 0.5222 GB, free: 1.578 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.767/3.494, allocations: 0 / 0.5222 GB, free: 1.578 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat