Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_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.002343/0.002343, allocations: 182.4 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.18/2.18, allocations: 205.2 MB / 219 MB, free: 9.211 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.001142/0.001141, allocations: 86.47 kB / 267.1 MB, free: 9.273 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.1114/0.1114, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.876e-05/3.885e-05, allocations: 4 kB / 386.1 MB, free: 69.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1022/0.1023, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.5561, allocations: 81.79 MB / 0.5061 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.5564, allocations: 79.62 kB / 0.5062 GB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02576/0.5822, allocations: 6.45 MB / 0.5125 GB, free: 9.453 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.5823, allocations: 0 / 0.5125 GB, free: 9.453 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.632e-05/0.5823, allocations: 3.844 kB / 0.5125 GB, free: 9.453 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.0006647/0.583, allocations: 0.4916 MB / 0.513 GB, free: 8.973 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.5831, allocations: 11.67 kB / 0.513 GB, free: 8.969 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.565e-05/0.5831, allocations: 41.72 kB / 0.513 GB, free: 8.926 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.577e-05/0.5832, allocations: 23.19 kB / 0.513 GB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005261/0.5837, allocations: 296.3 kB / 0.5133 GB, free: 8.664 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.5838, allocations: 11.03 kB / 0.5133 GB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.5838, allocations: 3.781 kB / 0.5133 GB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003486/0.5842, allocations: 151.8 kB / 0.5135 GB, free: 8.551 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.5842, allocations: 7.922 kB / 0.5135 GB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.5842, allocations: 7.062 kB / 0.5135 GB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.5843, allocations: 0 / 0.5135 GB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001162/0.5844, allocations: 29 kB / 0.5135 GB, free: 8.543 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.585, allocations: 407.7 kB / 0.5139 GB, free: 8.203 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.5853, allocations: 113.6 kB / 0.514 GB, free: 8.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.164e-05/0.5854, allocations: 47.66 kB / 0.5141 GB, free: 8.09 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.633e-05/0.5854, allocations: 4 kB / 0.5141 GB, free: 8.086 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.5856, allocations: 78.98 kB / 0.5142 GB, free: 8.027 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.544e-06/0.5856, allocations: 0 / 0.5142 GB, free: 8.027 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.00034/0.5859, allocations: 125.9 kB / 0.5143 GB, free: 7.969 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.907e-05/0.586, allocations: 158 kB / 0.5144 GB, free: 7.781 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006545/0.5867, allocations: 298.2 kB / 0.5147 GB, free: 7.652 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.5868, allocations: 33.45 kB / 0.5147 GB, free: 7.621 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001214/0.5869, allocations: 129.1 kB / 0.5149 GB, free: 7.531 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.85e-05/0.587, allocations: 23.55 kB / 0.5149 GB, free: 7.512 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.528e-05/0.587, allocations: 3.25 kB / 0.5149 GB, free: 7.512 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.5871, allocations: 333.4 kB / 0.5152 GB, free: 7.191 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001122/0.5873, allocations: 20.84 kB / 0.5152 GB, free: 7.191 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002159/0.5875, allocations: 99.62 kB / 0.5153 GB, free: 7.113 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001389/0.5877, allocations: 26.3 kB / 0.5153 GB, free: 7.109 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.5877, allocations: 0 / 0.5153 GB, free: 7.109 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0004347/0.5881, allocations: 128.8 kB / 0.5155 GB, free: 7.047 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.404e-05/0.5882, allocations: 3.844 kB / 0.5155 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.5882, allocations: 3.844 kB / 0.5155 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.5882, allocations: 0 / 0.5155 GB, free: 7.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.5885, allocations: 19.05 kB / 0.5155 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.43e-05/0.5886, allocations: 3.844 kB / 0.5155 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001922/0.5888, allocations: 7.594 kB / 0.5155 GB, free: 7.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.991e-05/0.5888, allocations: 3.844 kB / 0.5155 GB, free: 7.043 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 0.0001147/0.5889, allocations: 132.4 kB / 0.5156 GB, free: 6.914 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/0.5891, allocations: 64.05 kB / 0.5157 GB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003185/0.5894, allocations: 121.3 kB / 0.5158 GB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.5894, allocations: 0 / 0.5158 GB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.5894, allocations: 3.844 kB / 0.5158 GB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.5894, allocations: 0 / 0.5158 GB, free: 6.82 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.5897, allocations: 255.5 kB / 0.5161 GB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.5897, allocations: 0 / 0.5161 GB, free: 6.594 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.5898, allocations: 19.73 kB / 0.5161 GB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.5899, allocations: 3.938 kB / 0.5161 GB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.5899, allocations: 3.844 kB / 0.5161 GB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.5899, allocations: 0 / 0.5161 GB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.5899, allocations: 3.938 kB / 0.5161 GB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.5902, allocations: 190.5 kB / 0.5163 GB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001455/0.5904, allocations: 129.1 kB / 0.5164 GB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.879e-05/0.5904, allocations: 7.281 kB / 0.5164 GB, free: 6.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000117/0.5906, allocations: 7.828 kB / 0.5164 GB, free: 6.312 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.619e-05/0.5906, allocations: 10.89 kB / 0.5164 GB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.5e-05/0.5907, allocations: 3.906 kB / 0.5164 GB, free: 6.309 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003087/0.591, allocations: 239.9 kB / 0.5166 GB, free: 6.207 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.591, allocations: 0 / 0.5166 GB, free: 6.207 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003806/0.5914, allocations: 53.52 kB / 0.5167 GB, free: 6.195 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.001481/0.5929, allocations: 1.144 MB / 0.5178 GB, free: 5.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000276/0.5932, allocations: 84.19 kB / 0.5179 GB, free: 5.164 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.5932, allocations: 0 / 0.5179 GB, free: 5.164 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.227e-05/0.5933, allocations: 33.8 kB / 0.5179 GB, free: 5.16 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004558/0.5938, allocations: 62.92 kB / 0.518 GB, free: 5.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008255/0.5946, allocations: 358.4 kB / 0.5183 GB, free: 4.918 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/0.5948, allocations: 0.7449 MB / 0.5191 GB, free: 4.195 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001217/0.595, allocations: 32.59 kB / 0.5191 GB, free: 4.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.5951, allocations: 54.27 kB / 0.5191 GB, free: 4.168 MB / 330.7 MB Notification: Performance of SimCode: time 7.42e-07/0.5951, allocations: 4 kB / 0.5191 GB, free: 4.164 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03132/0.6265, allocations: 4.734 MB / 0.5238 GB, free: 252 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002275/0.6268, allocations: 215 kB / 0.524 GB, free: 20 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.616/3.242, allocations: 0 / 0.524 GB, free: 20 kB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SubSample_res.mat does not exist to compare? outputFormat=mat