Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",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.002453/0.002458, allocations: 178.4 kB / 8.048 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.35/2.35, allocations: 205.3 MB / 213.8 MB, free: 13.76 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.001198/0.001197, allocations: 93.55 kB / 261.8 MB, free: 13.44 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.1105/0.1105, allocations: 12.59 MB / 322.3 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.161e-05/2.161e-05, allocations: 0 / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4687/0.5814, allocations: 81.19 MB / 0.4986 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.5818, allocations: 76.88 kB / 0.4987 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02444/0.6063, allocations: 5.867 MB / 0.5044 GB, free: 10.5 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.6063, allocations: 0 / 0.5044 GB, free: 10.5 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.381e-05/0.6064, allocations: 11.52 kB / 0.5044 GB, free: 10.5 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.000659/0.607, allocations: 486.1 kB / 0.5049 GB, free: 10.03 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.6071, allocations: 7.625 kB / 0.5049 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.6072, allocations: 22.97 kB / 0.5049 GB, free: 10.02 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005049/0.6077, allocations: 274.3 kB / 0.5052 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.6077, allocations: 0 / 0.5052 GB, free: 9.777 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.964e-05/0.6078, allocations: 7.797 kB / 0.5052 GB, free: 9.773 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001539/0.608, allocations: 39.52 kB / 0.5052 GB, free: 9.77 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003315/0.6083, allocations: 151.1 kB / 0.5054 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.135e-05/0.6083, allocations: 0 / 0.5054 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.758e-05/0.6084, allocations: 0 / 0.5054 GB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.6084, allocations: 7.828 kB / 0.5054 GB, free: 9.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000658/0.609, allocations: 357.6 kB / 0.5057 GB, free: 9.352 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002079/0.6093, allocations: 124.9 kB / 0.5059 GB, free: 9.246 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.6094, allocations: 45.16 kB / 0.5059 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.128e-05/0.6095, allocations: 3.812 kB / 0.5059 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002245/0.6098, allocations: 76.95 kB / 0.506 GB, free: 9.152 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 5.04e-06/0.6098, allocations: 0 / 0.506 GB, free: 9.152 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0005719/0.6104, allocations: 125.7 kB / 0.5061 GB, free: 9.094 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.6105, allocations: 157.9 kB / 0.5062 GB, free: 8.906 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005291/0.611, allocations: 230.6 kB / 0.5065 GB, free: 8.797 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.272e-05/0.6111, allocations: 29.73 kB / 0.5065 GB, free: 8.762 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.061e-05/0.6112, allocations: 128.9 kB / 0.5066 GB, free: 8.664 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.877e-05/0.6113, allocations: 22.98 kB / 0.5066 GB, free: 8.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.574e-06/0.6113, allocations: 0 / 0.5066 GB, free: 8.648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.764e-05/0.6114, allocations: 328.9 kB / 0.507 GB, free: 8.332 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.498e-05/0.6114, allocations: 16.53 kB / 0.507 GB, free: 8.332 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001365/0.6116, allocations: 82.28 kB / 0.507 GB, free: 8.254 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001065/0.6117, allocations: 29.2 kB / 0.5071 GB, free: 8.246 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.6117, allocations: 7.609 kB / 0.5071 GB, free: 8.242 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002828/0.612, allocations: 124.6 kB / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.058e-05/0.6121, allocations: 7.656 kB / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.6121, allocations: 0 / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.6121, allocations: 3.844 kB / 0.5072 GB, free: 8.176 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.6123, allocations: 19.3 kB / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.6123, allocations: 0 / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.6124, allocations: 7.594 kB / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.365e-05/0.6125, allocations: 3.812 kB / 0.5072 GB, free: 8.168 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001007/0.6126, allocations: 118.1 kB / 0.5074 GB, free: 8.055 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002563/0.6128, allocations: 132.9 kB / 0.5075 GB, free: 7.988 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.095e-05/0.6129, allocations: 19.22 kB / 0.5075 GB, free: 7.98 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000287/0.6132, allocations: 102 kB / 0.5076 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.6132, allocations: 3.688 kB / 0.5076 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.6132, allocations: 0 / 0.5076 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.6133, allocations: 3.844 kB / 0.5076 GB, free: 7.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.6135, allocations: 212.8 kB / 0.5078 GB, free: 7.738 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.6135, allocations: 4.094 kB / 0.5078 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.279e-05/0.6136, allocations: 7.688 kB / 0.5078 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.452e-06/0.6136, allocations: 3.844 kB / 0.5078 GB, free: 7.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.6136, allocations: 3.984 kB / 0.5078 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/0.6136, allocations: 0 / 0.5078 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.6136, allocations: 3.922 kB / 0.5078 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.6139, allocations: 210.8 kB / 0.508 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001305/0.6141, allocations: 115 kB / 0.5081 GB, free: 7.449 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.547e-05/0.6141, allocations: 7.703 kB / 0.5081 GB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.6143, allocations: 3.781 kB / 0.5082 GB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.448e-05/0.6143, allocations: 11.78 kB / 0.5082 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.6144, allocations: 19.72 kB / 0.5082 GB, free: 7.426 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002279/0.6146, allocations: 181.7 kB / 0.5084 GB, free: 7.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6146, allocations: 0 / 0.5084 GB, free: 7.332 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004215/0.615, allocations: 38.59 kB / 0.5084 GB, free: 7.324 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.001486/0.6165, allocations: 1.188 MB / 0.5096 GB, free: 6.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.6169, allocations: 74.17 kB / 0.5096 GB, free: 6.238 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.6169, allocations: 3.938 kB / 0.5096 GB, free: 6.234 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.583e-05/0.617, allocations: 28.62 kB / 0.5097 GB, free: 6.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.6177, allocations: 65.03 kB / 0.5097 GB, free: 6.211 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00095/0.6186, allocations: 308.3 kB / 0.51 GB, free: 5.992 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.6189, allocations: 0.7413 MB / 0.5107 GB, free: 5.262 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001624/0.6191, allocations: 24.64 kB / 0.5108 GB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001233/0.6192, allocations: 50.61 kB / 0.5108 GB, free: 5.242 MB / 330.7 MB Notification: Performance of SimCode: time 1.393e-06/0.6192, allocations: 0 / 0.5108 GB, free: 5.242 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.043/0.6622, allocations: 3.959 MB / 0.5147 GB, free: 3.312 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002832/0.6626, allocations: 201.4 kB / 0.5149 GB, free: 3.117 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.698/3.36, allocations: 0 / 0.5149 GB, free: 3.117 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat