Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample",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.001485/0.001485, allocations: 181 kB / 8.049 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.338/2.338, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001131/0.001154, allocations: 92.42 kB / 261.8 MB, free: 13.46 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.1244/0.1244, allocations: 12.58 MB / 322.3 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.109e-05/2.125e-05, allocations: 4 kB / 379 MB, free: 75.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.102, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.468/0.5701, allocations: 81.09 MB / 0.4985 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000262/0.5704, allocations: 84.39 kB / 0.4986 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02493/0.5953, allocations: 6.27 MB / 0.5047 GB, free: 10.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.5954, allocations: 0 / 0.5047 GB, free: 10.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.897e-05/0.5954, allocations: 3.844 kB / 0.5047 GB, free: 10.46 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.0006863/0.5961, allocations: 478.1 kB / 0.5052 GB, free: 10 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.5962, allocations: 11.53 kB / 0.5052 GB, free: 10 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.148e-05/0.5962, allocations: 23.12 kB / 0.5052 GB, free: 9.988 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004863/0.5967, allocations: 260.2 kB / 0.5055 GB, free: 9.754 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.082e-05/0.5968, allocations: 7.797 kB / 0.5055 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.5968, allocations: 3.844 kB / 0.5055 GB, free: 9.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001337/0.597, allocations: 33.11 kB / 0.5055 GB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.5973, allocations: 135.2 kB / 0.5057 GB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.5973, allocations: 0 / 0.5057 GB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.5974, allocations: 7.797 kB / 0.5057 GB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.5974, allocations: 0 / 0.5057 GB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005314/0.5979, allocations: 345.3 kB / 0.506 GB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001703/0.5981, allocations: 100.6 kB / 0.5061 GB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.048e-05/0.5982, allocations: 46.7 kB / 0.5061 GB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.5982, allocations: 4 kB / 0.5061 GB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.5984, allocations: 71.7 kB / 0.5062 GB, free: 9.176 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 3.327e-06/0.5984, allocations: 0 / 0.5062 GB, free: 9.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003144/0.5987, allocations: 111.5 kB / 0.5063 GB, free: 9.121 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.5988, allocations: 143.9 kB / 0.5064 GB, free: 8.957 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003116/0.5991, allocations: 224.1 kB / 0.5067 GB, free: 8.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.5992, allocations: 25.7 kB / 0.5067 GB, free: 8.816 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.415e-05/0.5993, allocations: 118.3 kB / 0.5068 GB, free: 8.727 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.5993, allocations: 15.25 kB / 0.5068 GB, free: 8.719 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.773e-06/0.5993, allocations: 3.938 kB / 0.5068 GB, free: 8.715 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.475e-05/0.5994, allocations: 332.8 kB / 0.5071 GB, free: 8.395 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.992e-05/0.5995, allocations: 14.62 kB / 0.5071 GB, free: 8.395 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.157e-05/0.5996, allocations: 67.78 kB / 0.5072 GB, free: 8.332 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.657e-05/0.5996, allocations: 26.28 kB / 0.5072 GB, free: 8.324 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.858e-06/0.5997, allocations: 3.844 kB / 0.5072 GB, free: 8.324 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000208/0.5999, allocations: 109.3 kB / 0.5073 GB, free: 8.266 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.5999, allocations: 7.688 kB / 0.5074 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.5999, allocations: 0 / 0.5074 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.6, allocations: 3.812 kB / 0.5074 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.6001, allocations: 11.52 kB / 0.5074 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.6001, allocations: 3.844 kB / 0.5074 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001142/0.6002, allocations: 7.781 kB / 0.5074 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.324e-05/0.6003, allocations: 3.844 kB / 0.5074 GB, free: 8.258 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,subSample.y,subSample.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 8.051e-05/0.6003, allocations: 116.8 kB / 0.5075 GB, free: 8.141 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002155/0.6006, allocations: 111.5 kB / 0.5076 GB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.972e-05/0.6006, allocations: 23.2 kB / 0.5076 GB, free: 8.074 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002494/0.6009, allocations: 101.8 kB / 0.5077 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.6009, allocations: 3.656 kB / 0.5077 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.6009, allocations: 0 / 0.5077 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.6009, allocations: 3.984 kB / 0.5077 GB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002301/0.6012, allocations: 208 kB / 0.5079 GB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.6012, allocations: 0 / 0.5079 GB, free: 7.836 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.6013, allocations: 15.89 kB / 0.5079 GB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.6013, allocations: 3.938 kB / 0.5079 GB, free: 7.824 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.6013, allocations: 4 kB / 0.5079 GB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.6013, allocations: 3.906 kB / 0.508 GB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.6013, allocations: 0 / 0.508 GB, free: 7.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.6016, allocations: 175.3 kB / 0.5081 GB, free: 7.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.6017, allocations: 122.3 kB / 0.5082 GB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.6018, allocations: 0 / 0.5082 GB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.6019, allocations: 11.86 kB / 0.5082 GB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.08e-05/0.602, allocations: 3.844 kB / 0.5083 GB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.491e-05/0.602, allocations: 3.844 kB / 0.5083 GB, free: 7.559 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002154/0.6022, allocations: 184.9 kB / 0.5084 GB, free: 7.465 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6022, allocations: 0 / 0.5084 GB, free: 7.465 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003817/0.6026, allocations: 38.58 kB / 0.5085 GB, free: 7.453 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,subSample.y,sample.y,subSample.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.00136/0.604, allocations: 1.105 MB / 0.5095 GB, free: 6.461 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002458/0.6043, allocations: 61.47 kB / 0.5096 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.6043, allocations: 0 / 0.5096 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.181e-05/0.6044, allocations: 27.17 kB / 0.5096 GB, free: 6.453 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004947/0.6049, allocations: 47.27 kB / 0.5097 GB, free: 6.441 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008216/0.6057, allocations: 295.7 kB / 0.51 GB, free: 6.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.606, allocations: 0.737 MB / 0.5107 GB, free: 5.508 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.6061, allocations: 24.3 kB / 0.5107 GB, free: 5.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.6062, allocations: 44.92 kB / 0.5107 GB, free: 5.488 MB / 330.7 MB Notification: Performance of SimCode: time 9.52e-07/0.6062, allocations: 0 / 0.5107 GB, free: 5.488 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0504/0.6566, allocations: 3.624 MB / 0.5143 GB, free: 3.723 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002457/0.657, allocations: 199.9 kB / 0.5145 GB, free: 3.527 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.528/3.185, allocations: 0 / 0.5145 GB, free: 3.527 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat does not exist to compare? outputFormat=mat