Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked",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.001521/0.001526, allocations: 182 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.112/2.112, allocations: 205.2 MB / 219 MB, free: 9.203 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.001119/0.001119, allocations: 95.77 kB / 267.1 MB, free: 9.27 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.1196/0.1196, allocations: 12.59 MB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.219e-05/5.239e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 50.36 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4603/0.5671, allocations: 77.53 MB / 0.502 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002726/0.5674, allocations: 75.38 kB / 0.502 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003439/0.5709, allocations: 1.061 MB / 0.5031 GB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5709, allocations: 0 / 0.5031 GB, free: 11.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.5709, allocations: 7.938 kB / 0.5031 GB, free: 11.51 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003196/0.5713, allocations: 343.9 kB / 0.5034 GB, free: 11.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.539e-05/0.5713, allocations: 11.66 kB / 0.5034 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.5714, allocations: 33.28 kB / 0.5034 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.016e-05/0.5714, allocations: 7.812 kB / 0.5034 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001737/0.5716, allocations: 182.1 kB / 0.5036 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.5716, allocations: 7.891 kB / 0.5036 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.117e-05/0.5717, allocations: 7.562 kB / 0.5036 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001924/0.5719, allocations: 84.36 kB / 0.5037 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.5719, allocations: 0 / 0.5037 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.526e-06/0.5719, allocations: 0 / 0.5037 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.5719, allocations: 0 / 0.5037 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.575e-05/0.572, allocations: 14.22 kB / 0.5037 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003125/0.5723, allocations: 265.1 kB / 0.504 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.387e-05/0.5724, allocations: 40 kB / 0.504 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.604e-05/0.5724, allocations: 13.66 kB / 0.504 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.119e-05/0.5724, allocations: 3.781 kB / 0.504 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.5725, allocations: 36.95 kB / 0.5041 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.744e-06/0.5725, allocations: 0 / 0.5041 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001501/0.5726, allocations: 48.02 kB / 0.5041 GB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.5727, allocations: 82.56 kB / 0.5042 GB, free: 10.32 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001083/0.5728, allocations: 118.1 kB / 0.5043 GB, free: 10.22 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.5728, allocations: 29.64 kB / 0.5043 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.437e-05/0.5729, allocations: 91.55 kB / 0.5044 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.055e-06/0.5729, allocations: 0 / 0.5044 GB, free: 10.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.918e-06/0.5729, allocations: 3.5 kB / 0.5044 GB, free: 10.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.805e-05/0.573, allocations: 317.1 kB / 0.5047 GB, free: 9.785 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.448e-05/0.573, allocations: 3.906 kB / 0.5047 GB, free: 9.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.918e-05/0.573, allocations: 13.16 kB / 0.5047 GB, free: 9.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.833e-05/0.573, allocations: 4.781 kB / 0.5048 GB, free: 9.77 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.5731, allocations: 4.062 kB / 0.5048 GB, free: 9.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.663e-05/0.5731, allocations: 55.22 kB / 0.5048 GB, free: 9.723 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.5732, allocations: 3.688 kB / 0.5048 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5732, allocations: 0 / 0.5048 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.5732, allocations: 3.875 kB / 0.5048 GB, free: 9.723 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.145e-05/0.5733, allocations: 10.31 kB / 0.5048 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/0.5733, allocations: 0 / 0.5048 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.787e-05/0.5734, allocations: 3.969 kB / 0.5048 GB, free: 9.719 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.5734, allocations: 4.062 kB / 0.5048 GB, free: 9.715 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.443e-05/0.5734, allocations: 116.7 kB / 0.5049 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.5735, allocations: 36.8 kB / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.01e-05/0.5736, allocations: 10.12 kB / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.5736, allocations: 0 / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/0.5736, allocations: 3.844 kB / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.5736, allocations: 0 / 0.505 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.5738, allocations: 169.3 kB / 0.5052 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.5738, allocations: 0.875 kB / 0.5052 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.175e-05/0.5739, allocations: 14.17 kB / 0.5052 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.5739, allocations: 0 / 0.5052 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-06/0.5739, allocations: 0 / 0.5052 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.5739, allocations: 0 / 0.5052 GB, free: 9.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5739, allocations: 4 kB / 0.5052 GB, free: 9.363 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001063/0.574, allocations: 167.5 kB / 0.5053 GB, free: 9.199 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.432e-05/0.5741, allocations: 90.86 kB / 0.5054 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.769e-05/0.5741, allocations: 2.531 kB / 0.5054 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.5743, allocations: 3.781 kB / 0.5054 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.992e-05/0.5743, allocations: 0 / 0.5054 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.5743, allocations: 0 / 0.5054 GB, free: 9.102 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.171e-05/0.5744, allocations: 105.8 kB / 0.5055 GB, free: 9.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5744, allocations: 3.844 kB / 0.5055 GB, free: 9.027 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00026/0.5747, allocations: 0 / 0.5055 GB, free: 9.027 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0003034/0.575, allocations: 0.7658 MB / 0.5063 GB, free: 8.266 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.966e-05/0.5751, allocations: 7.688 kB / 0.5063 GB, free: 8.266 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.5751, allocations: 160 / 0.5063 GB, free: 8.266 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.867e-05/0.5751, allocations: 19.47 kB / 0.5063 GB, free: 8.254 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.5754, allocations: 10.14 kB / 0.5063 GB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004046/0.5758, allocations: 125.3 kB / 0.5064 GB, free: 8.129 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.576, allocations: 0.6885 MB / 0.5071 GB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.835e-05/0.576, allocations: 3.844 kB / 0.5071 GB, free: 7.434 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.858e-05/0.5761, allocations: 11.31 kB / 0.5071 GB, free: 7.426 MB / 330.7 MB Notification: Performance of SimCode: time 7.72e-07/0.5761, allocations: 4.156 kB / 0.5071 GB, free: 7.422 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01806/0.5942, allocations: 1.135 MB / 0.5082 GB, free: 7.133 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001452/0.5944, allocations: 186.3 kB / 0.5084 GB, free: 6.902 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.501/3.095, allocations: 3.906 kB / 0.5084 GB, free: 6.898 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat