Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",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.002322/0.002327, allocations: 177.7 kB / 8.045 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.559/2.559, allocations: 205.3 MB / 213.8 MB, free: 1.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001096/0.001096, allocations: 95.86 kB / 261.8 MB, free: 1.609 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.1041/0.1041, allocations: 12.61 MB / 322.4 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.389e-05, allocations: 4 kB / 379 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3746, allocations: 50.36 MB / 429.4 MB, free: 18.25 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.5465, allocations: 77 MB / 0.4945 GB, free: 5.141 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004019/0.547, allocations: 71.97 kB / 0.4946 GB, free: 5.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006407/0.5534, allocations: 1.102 MB / 0.4957 GB, free: 3.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.807e-06/0.5535, allocations: 4 kB / 0.4957 GB, free: 3.965 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.918e-05/0.5536, allocations: 4 kB / 0.4957 GB, free: 3.961 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.000852/0.5545, allocations: 342.4 kB / 0.496 GB, free: 3.582 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.439e-05/0.5546, allocations: 12.03 kB / 0.496 GB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.5548, allocations: 7.906 kB / 0.496 GB, free: 3.562 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006507/0.5554, allocations: 193.3 kB / 0.4962 GB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.589e-05/0.5555, allocations: 0 / 0.4962 GB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.887e-05/0.5556, allocations: 7.953 kB / 0.4962 GB, free: 3.328 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001643/0.5558, allocations: 15.94 kB / 0.4962 GB, free: 3.312 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.5561, allocations: 101 kB / 0.4963 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.5562, allocations: 0 / 0.4963 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.5562, allocations: 0 / 0.4963 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.5562, allocations: 0 / 0.4963 GB, free: 3.195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004469/0.5567, allocations: 250.3 kB / 0.4966 GB, free: 2.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002292/0.5569, allocations: 126.3 kB / 0.4967 GB, free: 2.75 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.733e-05/0.557, allocations: 21.78 kB / 0.4967 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.557, allocations: 0 / 0.4967 GB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.5571, allocations: 46.64 kB / 0.4968 GB, free: 2.668 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 1.423e-06/0.5571, allocations: 0 / 0.4968 GB, free: 2.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001941/0.5573, allocations: 49.55 kB / 0.4968 GB, free: 2.613 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.857e-05/0.5574, allocations: 85.09 kB / 0.4969 GB, free: 2.512 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001537/0.5575, allocations: 117.3 kB / 0.497 GB, free: 2.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.5576, allocations: 25.7 kB / 0.497 GB, free: 2.355 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.614e-05/0.5576, allocations: 96.02 kB / 0.4971 GB, free: 2.258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.4e-05/0.5577, allocations: 7.938 kB / 0.4971 GB, free: 2.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-06/0.5577, allocations: 0 / 0.4971 GB, free: 2.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.5578, allocations: 314.8 kB / 0.4974 GB, free: 1.934 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.083e-05/0.5579, allocations: 8 kB / 0.4974 GB, free: 1.926 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.902e-05/0.5579, allocations: 23.48 kB / 0.4975 GB, free: 1.891 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.43e-05/0.5579, allocations: 15.94 kB / 0.4975 GB, free: 1.875 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.558, allocations: 0 / 0.4975 GB, free: 1.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001189/0.5581, allocations: 53.67 kB / 0.4975 GB, free: 1.816 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.5581, allocations: 4 kB / 0.4975 GB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.5581, allocations: 0 / 0.4975 GB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.5582, allocations: 7.984 kB / 0.4975 GB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.5583, allocations: 8 kB / 0.4975 GB, free: 1.797 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.393e-05/0.5583, allocations: 8.094 kB / 0.4976 GB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.114e-05/0.5584, allocations: 8 kB / 0.4976 GB, free: 1.781 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.5584, allocations: 4 kB / 0.4976 GB, free: 1.777 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.14e-05/0.5585, allocations: 105 kB / 0.4977 GB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001312/0.5587, allocations: 61.48 kB / 0.4977 GB, free: 1.602 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.368e-05/0.5587, allocations: 3.906 kB / 0.4977 GB, free: 1.598 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.363e-05/0.5588, allocations: 8.344 kB / 0.4977 GB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.5588, allocations: 0 / 0.4977 GB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.5588, allocations: 4.031 kB / 0.4977 GB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.5588, allocations: 4 kB / 0.4977 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002/0.559, allocations: 146.2 kB / 0.4979 GB, free: 1.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.559, allocations: 3.953 kB / 0.4979 GB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.984e-05/0.5591, allocations: 11.98 kB / 0.4979 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.5592, allocations: 0 / 0.4979 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.5592, allocations: 0 / 0.4979 GB, free: 1.383 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.5592, allocations: 7.938 kB / 0.4979 GB, free: 1.375 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.5592, allocations: 3.938 kB / 0.4979 GB, free: 1.371 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001744/0.5594, allocations: 170 kB / 0.4981 GB, free: 1.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.602e-05/0.5595, allocations: 89 kB / 0.4982 GB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.5595, allocations: 0 / 0.4982 GB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.839e-05/0.5596, allocations: 8 kB / 0.4982 GB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.5597, allocations: 0 / 0.4982 GB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.5597, allocations: 4 kB / 0.4982 GB, free: 1.062 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.246e-05/0.5598, allocations: 99.27 kB / 0.4983 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5598, allocations: 0 / 0.4983 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003085/0.5601, allocations: 4 kB / 0.4983 GB, free: 0.9609 MB / 346.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: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0005355/0.5607, allocations: 0.768 MB / 0.499 GB, free: 164 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.5608, allocations: 20 kB / 0.499 GB, free: 144 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.5608, allocations: 0 / 0.499 GB, free: 144 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.91e-05/0.5608, allocations: 11.88 kB / 0.499 GB, free: 132 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.5612, allocations: 19.39 kB / 0.4991 GB, free: 116 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000504/0.5617, allocations: 126.5 kB / 0.4992 GB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003529/0.562, allocations: 0.6924 MB / 0.4999 GB, free: 15.23 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.446e-05/0.5621, allocations: 12.31 kB / 0.4999 GB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.5622, allocations: 19.42 kB / 0.4999 GB, free: 15.2 MB / 362.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5622, allocations: 0 / 0.4999 GB, free: 15.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03726/0.5994, allocations: 0.8938 MB / 0.5008 GB, free: 14.31 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000322/0.5998, allocations: 160.3 kB / 0.5009 GB, free: 14.12 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.957, allocations: 3.938 kB / 0.5009 GB, free: 14.11 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat