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.001578/0.001582, allocations: 184.2 kB / 15.8 MB, free: 6.316 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.033/2.033, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001152/0.001151, allocations: 94.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09631/0.09631, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005348/0.0005349, allocations: 12.69 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09367, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1481/0.2418, allocations: 81.87 MB / 0.5121 GB, free: 8.852 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003365/0.2422, allocations: 87.95 kB / 0.5121 GB, free: 8.766 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02999/0.2722, allocations: 6.479 MB / 0.5185 GB, free: 2.277 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2723, allocations: 0 / 0.5185 GB, free: 2.277 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.137e-05/0.2723, allocations: 8 kB / 0.5185 GB, free: 2.27 MB / 362.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.0009709/0.2733, allocations: 0.5427 MB / 0.519 GB, free: 1.672 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.2734, allocations: 12.03 kB / 0.519 GB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.345e-05/0.2734, allocations: 38.55 kB / 0.519 GB, free: 1.613 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.057e-05/0.2735, allocations: 19.72 kB / 0.5191 GB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000605/0.2741, allocations: 290.5 kB / 0.5193 GB, free: 1.266 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.09e-05/0.2742, allocations: 4 kB / 0.5193 GB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.903e-05/0.2742, allocations: 11.94 kB / 0.5194 GB, free: 1.25 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004581/0.2747, allocations: 155.6 kB / 0.5195 GB, free: 1.07 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2747, allocations: 3.938 kB / 0.5195 GB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.79e-05/0.2747, allocations: 0 / 0.5195 GB, free: 1.066 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.2748, allocations: 4 kB / 0.5195 GB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.275, allocations: 43.89 kB / 0.5196 GB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007795/0.2757, allocations: 402.4 kB / 0.5199 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003737/0.2761, allocations: 115.9 kB / 0.5201 GB, free: 440 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.413e-05/0.2762, allocations: 12.06 kB / 0.5201 GB, free: 428 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002465/0.2765, allocations: 87.38 kB / 0.5201 GB, free: 328 kB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.805e-06/0.2765, allocations: 0 / 0.5201 GB, free: 328 kB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0006155/0.2771, allocations: 153.4 kB / 0.5203 GB, free: 168 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2722/0.5493, allocations: 162.5 kB / 0.5204 GB, free: 83.78 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006296/0.55, allocations: 303 kB / 0.5207 GB, free: 83.68 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.288e-05/0.5501, allocations: 28.08 kB / 0.5208 GB, free: 83.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.271e-05/0.5502, allocations: 127 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.5502, allocations: 11.34 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.106e-05/0.5503, allocations: 1.5 kB / 0.5209 GB, free: 83.56 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/0.5504, allocations: 337.4 kB / 0.5212 GB, free: 83.25 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.5505, allocations: 19.88 kB / 0.5212 GB, free: 83.25 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001937/0.5507, allocations: 99.59 kB / 0.5213 GB, free: 83.19 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000169/0.5509, allocations: 28.75 kB / 0.5214 GB, free: 83.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.5509, allocations: 1 kB / 0.5214 GB, free: 83.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0005843/0.5515, allocations: 131.7 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.682e-05/0.5516, allocations: 5.844 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.5516, allocations: 2.688 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.5516, allocations: 6.938 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/0.5518, allocations: 15.94 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.5519, allocations: 3.719 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001391/0.552, allocations: 10.27 kB / 0.5215 GB, free: 83.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.552, allocations: 5.031 kB / 0.5215 GB, free: 83.16 MB / 362.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 () * Number of clocked 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.0002019/0.5522, allocations: 163.6 kB / 0.5217 GB, free: 83.04 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.5524, allocations: 69.11 kB / 0.5218 GB, free: 83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003999/0.5528, allocations: 123.3 kB / 0.5219 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.5528, allocations: 2.625 kB / 0.5219 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.5528, allocations: 0 / 0.5219 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.5528, allocations: 1 kB / 0.5219 GB, free: 82.96 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002578/0.5531, allocations: 252.7 kB / 0.5221 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.5531, allocations: 1.125 kB / 0.5221 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.5532, allocations: 13.34 kB / 0.5221 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.5533, allocations: 1.062 kB / 0.5221 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.95e-05/0.5533, allocations: 12.95 kB / 0.5221 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.139e-06/0.5533, allocations: 1.219 kB / 0.5221 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.5533, allocations: 4.672 kB / 0.5222 GB, free: 82.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003969/0.5537, allocations: 195.2 kB / 0.5223 GB, free: 82.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.5539, allocations: 127.4 kB / 0.5225 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.5539, allocations: 5.719 kB / 0.5225 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001139/0.5541, allocations: 4.125 kB / 0.5225 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.879e-05/0.5541, allocations: 11.92 kB / 0.5225 GB, free: 82.54 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.5542, allocations: 4.719 kB / 0.5225 GB, free: 82.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003675/0.5545, allocations: 242.5 kB / 0.5227 GB, free: 82.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5546, allocations: 0 / 0.5227 GB, free: 82.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004113/0.555, allocations: 52.36 kB / 0.5228 GB, free: 82.46 MB / 362.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) * Number of clocked states: 0 () * 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.001714/0.5567, allocations: 1.201 MB / 0.5239 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004046/0.5571, allocations: 87.47 kB / 0.524 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5572, allocations: 1.5 kB / 0.524 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.5573, allocations: 35.48 kB / 0.5241 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005268/0.5578, allocations: 60.88 kB / 0.5241 GB, free: 81.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00264/0.5605, allocations: 1.766 MB / 0.5258 GB, free: 80.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.5608, allocations: 0.7478 MB / 0.5266 GB, free: 79.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001777/0.561, allocations: 32.94 kB / 0.5266 GB, free: 79.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001493/0.5612, allocations: 56.52 kB / 0.5267 GB, free: 79.64 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/0.5612, allocations: 0 / 0.5267 GB, free: 79.64 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.59, allocations: 4.783 MB / 0.5313 GB, free: 79.05 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.5903, allocations: 236.3 kB / 0.5316 GB, free: 78.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.615/3.206, allocations: 1.156 kB / 0.5316 GB, free: 78.81 MB / 362.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