Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001557/0.001558, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 225.6 MB / 234.8 MB, free: 3.262 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001119/0.001119, allocations: 97.64 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.002e-05/3.005e-05, allocations: 4 kB / 343.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1466, allocations: 51.48 MB / 395.3 MB, free: 4.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3678/0.5145, allocations: 82.87 MB / 478.1 MB, free: 9.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.5148, allocations: 69.45 kB / 478.2 MB, free: 9.879 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04743/0.5622, allocations: 27.25 MB / 0.4936 GB, free: 4.473 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5623, allocations: 4 kB / 0.4936 GB, free: 4.469 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.5623, allocations: 4 kB / 0.4936 GB, free: 4.465 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.0006729/0.563, allocations: 0.6234 MB / 0.4942 GB, free: 3.785 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.563, allocations: 8.031 kB / 0.4942 GB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.512e-05/0.5631, allocations: 35.62 kB / 0.4943 GB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.5634, allocations: 255.7 kB / 0.4945 GB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.5635, allocations: 6.062 kB / 0.4945 GB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.419e-05/0.5635, allocations: 8 kB / 0.4945 GB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001444/0.5637, allocations: 59.97 kB / 0.4946 GB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002191/0.5639, allocations: 141.5 kB / 0.4947 GB, free: 3.238 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.5639, allocations: 7.938 kB / 0.4947 GB, free: 3.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.906e-05/0.5639, allocations: 3.984 kB / 0.4947 GB, free: 3.227 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.222e-06/0.5639, allocations: 4 kB / 0.4947 GB, free: 3.223 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006827/0.5646, allocations: 447.9 kB / 0.4952 GB, free: 2.773 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001518/0.5648, allocations: 106.5 kB / 0.4953 GB, free: 2.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.5649, allocations: 76.91 kB / 0.4953 GB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.5649, allocations: 0 / 0.4953 GB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000265/0.5652, allocations: 226.7 kB / 0.4955 GB, free: 2.336 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.5652, allocations: 0 / 0.4955 GB, free: 2.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005485/0.5658, allocations: 309.1 kB / 0.4958 GB, free: 2.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.5659, allocations: 170.2 kB / 0.496 GB, free: 1.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005134/0.5664, allocations: 445.2 kB / 0.4964 GB, free: 1.387 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.5665, allocations: 29.7 kB / 0.4965 GB, free: 1.352 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.435e-05/0.5665, allocations: 101.4 kB / 0.4966 GB, free: 1.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.5666, allocations: 27.66 kB / 0.4966 GB, free: 1.223 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.246e-05/0.5666, allocations: 4 kB / 0.4966 GB, free: 1.219 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.5667, allocations: 322.8 kB / 0.4969 GB, free: 0.8945 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.5669, allocations: 59.97 kB / 0.4969 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.028e-05/0.567, allocations: 58.8 kB / 0.497 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.563e-05/0.567, allocations: 57.94 kB / 0.4971 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.5671, allocations: 0 / 0.4971 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004386/0.5675, allocations: 289.3 kB / 0.4973 GB, free: 448 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.292e-05/0.5676, allocations: 126.8 kB / 0.4975 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.5676, allocations: 0 / 0.4975 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.5676, allocations: 0 / 0.4975 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.709e-05/0.5676, allocations: 0 / 0.4975 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.238e-06/0.5677, allocations: 0 / 0.4975 GB, free: 296 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001398/0.5678, allocations: 15.94 kB / 0.4975 GB, free: 280 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.5679, allocations: 123.9 kB / 0.4976 GB, free: 156 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.x,$PRE.bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0001818/0.5681, allocations: 237.5 kB / 0.4978 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004857/0.5686, allocations: 337 kB / 0.4981 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.732e-05/0.5687, allocations: 35.62 kB / 0.4982 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.5688, allocations: 67.42 kB / 0.4982 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.5688, allocations: 0 / 0.4982 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.5688, allocations: 0 / 0.4982 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.5688, allocations: 0 / 0.4982 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000827/0.5696, allocations: 0.6976 MB / 0.4989 GB, free: 14.71 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.5697, allocations: 4.062 kB / 0.4989 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.771e-06/0.5697, allocations: 0 / 0.4989 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.5697, allocations: 0 / 0.4989 GB, free: 14.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.5697, allocations: 19.98 kB / 0.4989 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.5697, allocations: 0 / 0.4989 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5697, allocations: 3.938 kB / 0.4989 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005509/0.5703, allocations: 430.9 kB / 0.4994 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003235/0.5706, allocations: 252.5 kB / 0.4996 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.898e-05/0.5707, allocations: 12 kB / 0.4996 GB, free: 13.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00015/0.5709, allocations: 11.91 kB / 0.4996 GB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001257/0.571, allocations: 35.89 kB / 0.4997 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.5711, allocations: 126 kB / 0.4998 GB, free: 13.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004165/0.5716, allocations: 370.7 kB / 0.5001 GB, free: 13.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5716, allocations: 0 / 0.5001 GB, free: 13.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003155/0.5719, allocations: 44 kB / 0.5002 GB, free: 13.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,bUF3S.inertialDelaySensitive.x,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.y_old,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,bUF3S.yy,bUF3S.nextstate,bUF3S.inertialDelaySensitive.y,bUF3S.inertialDelaySensitive.y_auxiliary,bUF3S.inertialDelaySensitive.t_next,bUF3S.inertialDelaySensitive.delayTime,bUF3S.inertialDelaySensitive.lh,bUF3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.0008557/0.5728, allocations: 0.9681 MB / 0.5011 GB, free: 12.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004506/0.5732, allocations: 437.4 kB / 0.5015 GB, free: 11.92 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5732, allocations: 0 / 0.5015 GB, free: 11.92 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002755/0.5735, allocations: 377.6 kB / 0.5019 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005579/0.5741, allocations: 111.3 kB / 0.502 GB, free: 11.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.5752, allocations: 0.5944 MB / 0.5026 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.5756, allocations: 0.8139 MB / 0.5034 GB, free: 9.926 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.297e-05/0.5757, allocations: 8.656 kB / 0.5034 GB, free: 9.918 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.483e-05/0.5757, allocations: 23.44 kB / 0.5034 GB, free: 9.895 MB / 378.7 MB Notification: Performance of SimCode: time 4e-07/0.5757, allocations: 0 / 0.5034 GB, free: 9.895 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.6012, allocations: 6.459 MB / 0.5097 GB, free: 3.406 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.6015, allocations: 139.2 kB / 0.5098 GB, free: 3.207 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.588/2.19, allocations: 0 / 0.5098 GB, free: 3.207 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat