Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.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.SuperSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample",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.001585/0.00159, allocations: 182.1 kB / 8.049 MB, free: 1.02 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.377/2.377, allocations: 205.3 MB / 213.8 MB, free: 13.75 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.001137/0.001137, allocations: 94 kB / 261.8 MB, free: 13.43 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.1118/0.1118, allocations: 12.58 MB / 322.3 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.603e-05, allocations: 0 / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1068, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.449/0.5558, allocations: 81.12 MB / 0.4986 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002997/0.5562, allocations: 78.09 kB / 0.4986 GB, free: 11.63 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02648/0.5827, allocations: 6.417 MB / 0.5049 GB, free: 10.36 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.5828, allocations: 0 / 0.5049 GB, free: 10.36 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.11e-05/0.5828, allocations: 3.719 kB / 0.5049 GB, free: 10.36 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.0006896/0.5835, allocations: 0.4982 MB / 0.5054 GB, free: 9.871 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.5836, allocations: 7.5 kB / 0.5054 GB, free: 9.871 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.437e-05/0.5837, allocations: 27.17 kB / 0.5054 GB, free: 9.855 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006035/0.5843, allocations: 284.9 kB / 0.5057 GB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.476e-05/0.5843, allocations: 7.641 kB / 0.5057 GB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.5844, allocations: 3.906 kB / 0.5057 GB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001519/0.5845, allocations: 41.58 kB / 0.5058 GB, free: 9.605 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.5848, allocations: 143.7 kB / 0.5059 GB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.5849, allocations: 3.938 kB / 0.5059 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.5849, allocations: 0 / 0.5059 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.5849, allocations: 3.812 kB / 0.5059 GB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006545/0.5856, allocations: 373.1 kB / 0.5063 GB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.5858, allocations: 106.7 kB / 0.5064 GB, free: 9.109 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.012e-05/0.5859, allocations: 52.88 kB / 0.5064 GB, free: 9.074 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.993e-05/0.5859, allocations: 3.984 kB / 0.5064 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001704/0.5861, allocations: 77.3 kB / 0.5065 GB, free: 9.012 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.645e-06/0.5861, allocations: 0 / 0.5065 GB, free: 9.012 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003578/0.5865, allocations: 127.2 kB / 0.5066 GB, free: 8.949 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.913e-05/0.5866, allocations: 158.2 kB / 0.5068 GB, free: 8.758 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004084/0.587, allocations: 284.7 kB / 0.507 GB, free: 8.641 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.587, allocations: 29.58 kB / 0.5071 GB, free: 8.609 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.525e-05/0.5871, allocations: 123.8 kB / 0.5072 GB, free: 8.52 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.335e-05/0.5872, allocations: 25.28 kB / 0.5072 GB, free: 8.504 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.745e-06/0.5872, allocations: 0 / 0.5072 GB, free: 8.504 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.641e-05/0.5873, allocations: 336.3 kB / 0.5075 GB, free: 8.18 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.758e-05/0.5873, allocations: 25.72 kB / 0.5075 GB, free: 8.176 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001119/0.5875, allocations: 87.75 kB / 0.5076 GB, free: 8.105 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.469e-05/0.5876, allocations: 30.08 kB / 0.5077 GB, free: 8.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.5876, allocations: 3.938 kB / 0.5077 GB, free: 8.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002683/0.5879, allocations: 115.7 kB / 0.5078 GB, free: 8.035 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.921e-05/0.5879, allocations: 3.906 kB / 0.5078 GB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.485e-06/0.5879, allocations: 3.969 kB / 0.5078 GB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5879, allocations: 0 / 0.5078 GB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.5881, allocations: 23.14 kB / 0.5078 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.5882, allocations: 0 / 0.5078 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.5883, allocations: 7.562 kB / 0.5078 GB, free: 8.027 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.5883, allocations: 7.812 kB / 0.5078 GB, free: 8.023 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,superSample.y,superSample.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 9.351e-05/0.5884, allocations: 110.9 kB / 0.5079 GB, free: 7.914 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002522/0.5887, allocations: 124.8 kB / 0.508 GB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.494e-05/0.5888, allocations: 23.25 kB / 0.5081 GB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.5891, allocations: 115.1 kB / 0.5082 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.5891, allocations: 0 / 0.5082 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5891, allocations: 0 / 0.5082 GB, free: 7.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5891, allocations: 7.938 kB / 0.5082 GB, free: 7.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002245/0.5894, allocations: 224.9 kB / 0.5084 GB, free: 7.594 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.5894, allocations: 7.922 kB / 0.5084 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.5895, allocations: 11.69 kB / 0.5084 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/0.5895, allocations: 0 / 0.5084 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.552e-05/0.5895, allocations: 4.156 kB / 0.5084 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5896, allocations: 4 kB / 0.5084 GB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.5896, allocations: 3.984 kB / 0.5084 GB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002708/0.5899, allocations: 184.1 kB / 0.5086 GB, free: 7.438 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.59, allocations: 127.2 kB / 0.5087 GB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.771e-05/0.5901, allocations: 3.906 kB / 0.5087 GB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.5902, allocations: 7.828 kB / 0.5087 GB, free: 7.316 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.68e-05/0.5903, allocations: 7.828 kB / 0.5087 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.5903, allocations: 3.844 kB / 0.5087 GB, free: 7.312 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002853/0.5906, allocations: 229.6 kB / 0.509 GB, free: 7.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5906, allocations: 0 / 0.509 GB, free: 7.211 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004517/0.5911, allocations: 49.78 kB / 0.509 GB, free: 7.199 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,superSample.y,sample.y,superSample.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.001465/0.5926, allocations: 1.118 MB / 0.5101 GB, free: 6.207 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003081/0.5929, allocations: 85.48 kB / 0.5102 GB, free: 6.191 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5929, allocations: 0 / 0.5102 GB, free: 6.191 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.256e-05/0.593, allocations: 30.5 kB / 0.5102 GB, free: 6.188 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005299/0.5936, allocations: 61.61 kB / 0.5103 GB, free: 6.164 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009293/0.5945, allocations: 349.6 kB / 0.5106 GB, free: 5.945 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002247/0.5948, allocations: 0.747 MB / 0.5113 GB, free: 5.219 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001461/0.5949, allocations: 31.61 kB / 0.5114 GB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001342/0.5951, allocations: 54.33 kB / 0.5114 GB, free: 5.195 MB / 330.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5951, allocations: 3.938 kB / 0.5114 GB, free: 5.191 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04631/0.6414, allocations: 4.248 MB / 0.5156 GB, free: 3.137 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002291/0.6417, allocations: 210.6 kB / 0.5158 GB, free: 2.883 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.668/3.31, allocations: 0 / 0.5158 GB, free: 2.883 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SuperSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SuperSample_res.mat does not exist to compare? outputFormat=mat