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.002417/0.002422, 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.419/2.419, 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.001115/0.001115, allocations: 92.42 kB / 261.8 MB, free: 13.45 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.1163/0.1163, allocations: 12.59 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.287e-05/2.285e-05, allocations: 4 kB / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1096, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4615/0.5711, allocations: 81.1 MB / 0.4986 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003382/0.5715, allocations: 82.31 kB / 0.4986 GB, free: 11.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02734/0.5989, allocations: 6.417 MB / 0.5049 GB, free: 10.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.5989, allocations: 0 / 0.5049 GB, free: 10.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.301e-05/0.599, allocations: 3.812 kB / 0.5049 GB, free: 10.34 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.0007938/0.5998, allocations: 0.4943 MB / 0.5054 GB, free: 9.855 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.5999, allocations: 11.5 kB / 0.5054 GB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.282e-05/0.6, allocations: 27.17 kB / 0.5054 GB, free: 9.84 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006006/0.6006, allocations: 288 kB / 0.5057 GB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.6006, allocations: 7.938 kB / 0.5057 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.194e-05/0.6007, allocations: 3.719 kB / 0.5057 GB, free: 9.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001562/0.6008, allocations: 40.39 kB / 0.5057 GB, free: 9.586 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.6012, allocations: 147.1 kB / 0.5059 GB, free: 9.477 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.6012, allocations: 3.938 kB / 0.5059 GB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.6012, allocations: 0 / 0.5059 GB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.6012, allocations: 0 / 0.5059 GB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007395/0.602, allocations: 383 kB / 0.5063 GB, free: 9.164 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.6022, allocations: 103.9 kB / 0.5064 GB, free: 9.086 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.227e-05/0.6023, allocations: 53.84 kB / 0.5064 GB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.6024, allocations: 0 / 0.5064 GB, free: 9.051 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001867/0.6026, allocations: 75.39 kB / 0.5065 GB, free: 8.992 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.374e-06/0.6026, allocations: 0 / 0.5065 GB, free: 8.992 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003834/0.603, allocations: 121.9 kB / 0.5066 GB, free: 8.934 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.6031, allocations: 158.2 kB / 0.5067 GB, free: 8.742 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004295/0.6035, allocations: 287.8 kB / 0.507 GB, free: 8.625 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.6035, allocations: 25.7 kB / 0.507 GB, free: 8.594 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.255e-05/0.6037, allocations: 128.8 kB / 0.5072 GB, free: 8.504 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/0.6037, allocations: 22.97 kB / 0.5072 GB, free: 8.488 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.057e-06/0.6037, allocations: 0 / 0.5072 GB, free: 8.488 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.053e-05/0.6038, allocations: 334.4 kB / 0.5075 GB, free: 8.164 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.838e-05/0.6039, allocations: 26.16 kB / 0.5075 GB, free: 8.16 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001198/0.604, allocations: 84.28 kB / 0.5076 GB, free: 8.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.859e-05/0.6041, allocations: 37.73 kB / 0.5077 GB, free: 8.078 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.6041, allocations: 0 / 0.5077 GB, free: 8.078 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002544/0.6044, allocations: 112.8 kB / 0.5078 GB, free: 8.023 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.233e-05/0.6044, allocations: 3.844 kB / 0.5078 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.6045, allocations: 3.875 kB / 0.5078 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.6045, allocations: 0 / 0.5078 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002043/0.6047, allocations: 23.3 kB / 0.5078 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.6047, allocations: 0 / 0.5078 GB, free: 8.016 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.6049, allocations: 7.875 kB / 0.5078 GB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.6049, allocations: 7.812 kB / 0.5078 GB, free: 8.008 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.0001053/0.605, allocations: 116.2 kB / 0.5079 GB, free: 7.898 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002612/0.6053, allocations: 120.7 kB / 0.508 GB, free: 7.84 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.724e-05/0.6054, allocations: 23.16 kB / 0.5081 GB, free: 7.828 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003106/0.6057, allocations: 117.3 kB / 0.5082 GB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.6057, allocations: 3.969 kB / 0.5082 GB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.6057, allocations: 4 kB / 0.5082 GB, free: 7.766 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.61e-06/0.6057, allocations: 4.062 kB / 0.5082 GB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00026/0.606, allocations: 230 kB / 0.5084 GB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.606, allocations: 3.984 kB / 0.5084 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.6062, allocations: 11.12 kB / 0.5084 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.174e-06/0.6062, allocations: 0 / 0.5084 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.6062, allocations: 7.812 kB / 0.5084 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.6062, allocations: 0 / 0.5084 GB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.6062, allocations: 3.984 kB / 0.5084 GB, free: 7.559 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002847/0.6065, allocations: 183.8 kB / 0.5086 GB, free: 7.418 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001541/0.6067, allocations: 126 kB / 0.5087 GB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.911e-05/0.6068, allocations: 3.688 kB / 0.5087 GB, free: 7.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.6069, allocations: 3.984 kB / 0.5087 GB, free: 7.297 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.419e-05/0.607, allocations: 14.58 kB / 0.5087 GB, free: 7.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.607, allocations: 3.688 kB / 0.5087 GB, free: 7.293 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002923/0.6073, allocations: 230.4 kB / 0.509 GB, free: 7.191 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6073, allocations: 0 / 0.509 GB, free: 7.191 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004578/0.6078, allocations: 46.62 kB / 0.509 GB, free: 7.18 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.001494/0.6093, allocations: 1.122 MB / 0.5101 GB, free: 6.184 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.6096, allocations: 72.88 kB / 0.5102 GB, free: 6.172 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.6097, allocations: 3.844 kB / 0.5102 GB, free: 6.172 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.496e-05/0.6098, allocations: 35.23 kB / 0.5102 GB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006/0.6104, allocations: 54.42 kB / 0.5103 GB, free: 6.145 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009843/0.6114, allocations: 353.5 kB / 0.5106 GB, free: 5.926 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.6116, allocations: 0.75 MB / 0.5113 GB, free: 5.195 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.6118, allocations: 32.97 kB / 0.5114 GB, free: 5.188 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.612, allocations: 58.77 kB / 0.5114 GB, free: 5.172 MB / 330.7 MB Notification: Performance of SimCode: time 1.283e-06/0.612, allocations: 0 / 0.5114 GB, free: 5.172 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04653/0.6585, allocations: 4.255 MB / 0.5156 GB, free: 3.105 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003057/0.6589, allocations: 192.4 kB / 0.5158 GB, free: 2.914 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.537/3.196, allocations: 3.938 kB / 0.5158 GB, free: 2.91 MB / 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