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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001035/0.001035, allocations: 98.75 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001132/0.001132, allocations: 192.3 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246 MB, free: 10.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002846/0.0002848, allocations: 4 kB / 306.8 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1256, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001976/0.1277, allocations: 1.218 MB / 359.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002233/0.13, allocations: 0.8426 MB / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.405e-05/0.13, allocations: 0 / 360.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.1302, allocations: 7.922 kB / 360.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001052/0.1303, allocations: 19.86 kB / 360.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003667/0.1306, allocations: 35.95 kB / 360.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.1308, allocations: 107.7 kB / 360.5 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001372/0.131, allocations: 12 kB / 360.5 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005528/0.1316, allocations: 347.4 kB / 360.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001277/0.1317, allocations: 71.81 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.489e-05/0.1317, allocations: 4 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.573e-05/0.1318, allocations: 4 kB / 361 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.416e-05/0.1319, allocations: 59.77 kB / 361 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.302e-05/0.132, allocations: 77.52 kB / 361.1 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003005/0.1323, allocations: 275.4 kB / 361.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.977e-06/0.1323, allocations: 4 kB / 361.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1323, allocations: 3.938 kB / 361.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.84e-06/0.1323, allocations: 0 / 361.4 MB, free: 10.69 MB / 302.1 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.0007515/0.1331, allocations: 0.6684 MB / 362 MB, free: 9.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.54e-05/0.1331, allocations: 8.031 kB / 362 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.1332, allocations: 42.55 kB / 362.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/0.1333, allocations: 39.53 kB / 362.1 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.1336, allocations: 257.4 kB / 362.4 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.1336, allocations: 11.95 kB / 362.4 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.1337, allocations: 8 kB / 362.4 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.134, allocations: 121.6 kB / 362.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.134, allocations: 0 / 362.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.429e-05/0.134, allocations: 11.94 kB / 362.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.1341, allocations: 4 kB / 362.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001447/0.1342, allocations: 59.95 kB / 362.6 MB, free: 9.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006429/0.1349, allocations: 452.5 kB / 363 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001729/0.135, allocations: 94.48 kB / 363.1 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.1352, allocations: 92.88 kB / 363.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.026e-05/0.1352, allocations: 0 / 363.2 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003198/0.1355, allocations: 194.7 kB / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.1356, allocations: 0 / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008793/0.1364, allocations: 459.9 kB / 363.9 MB, free: 7.957 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001403/0.1366, allocations: 170.2 kB / 364 MB, free: 7.754 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006712/0.1373, allocations: 0.5207 MB / 364.5 MB, free: 7.227 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.705e-05/0.1373, allocations: 29.7 kB / 364.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.844e-05/0.1374, allocations: 97.12 kB / 364.7 MB, free: 7.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/0.1374, allocations: 31.64 kB / 364.7 MB, free: 7.062 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.451e-05/0.1375, allocations: 4 kB / 364.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1376, allocations: 326.8 kB / 365 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.1377, allocations: 55.97 kB / 365.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1379, allocations: 75.75 kB / 365.1 MB, free: 6.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001742/0.1381, allocations: 178.4 kB / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.1381, allocations: 0 / 365.3 MB, free: 6.402 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005031/0.1386, allocations: 372.5 kB / 365.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.069e-05/0.1387, allocations: 126.8 kB / 365.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.1387, allocations: 4 kB / 365.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.1387, allocations: 0 / 365.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.235e-05/0.1388, allocations: 11.94 kB / 365.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1388, allocations: 0 / 365.8 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.1389, allocations: 15.98 kB / 365.8 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.987e-05/0.139, allocations: 40.03 kB / 365.9 MB, free: 5.789 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.bUF3S.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,e_table.y,x_table.y,bUF3S.nextstate,bUF3S.yy,$PRE.bUF3S.inertialDelaySensitive.x,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: 0 () * Number of clocked 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.0003362/0.1393, allocations: 366.2 kB / 366.2 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.465e-05/0.1394, allocations: 31.62 kB / 366.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.1395, allocations: 71.09 kB / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1395, allocations: 0 / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1395, allocations: 0 / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1395, allocations: 0 / 366.3 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.1405, allocations: 0.8133 MB / 367.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1405, allocations: 0 / 367.1 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.112e-06/0.1406, allocations: 4 kB / 367.2 MB, free: 4.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1406, allocations: 3.984 kB / 367.2 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.848e-05/0.1406, allocations: 12 kB / 367.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.1406, allocations: 0 / 367.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1406, allocations: 0 / 367.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006291/0.1412, allocations: 0.529 MB / 367.7 MB, free: 3.801 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002889/0.1415, allocations: 244.4 kB / 367.9 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.1416, allocations: 16 kB / 368 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.1418, allocations: 15.92 kB / 368 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.1419, allocations: 27.97 kB / 368 MB, free: 3.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.104e-05/0.1419, allocations: 39.94 kB / 368 MB, free: 3.445 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005126/0.1425, allocations: 390.8 kB / 368.4 MB, free: 3.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1425, allocations: 7.875 kB / 368.4 MB, free: 3.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.1428, allocations: 44 kB / 368.5 MB, free: 3.016 MB / 302.1 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) * Number of clocked states: 0 () * 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.001117/0.1439, allocations: 1.086 MB / 369.6 MB, free: 1.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005739/0.1445, allocations: 433.5 kB / 370 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1445, allocations: 0 / 370 MB, free: 1.402 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004123/0.1449, allocations: 373.6 kB / 370.3 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006574/0.1456, allocations: 119.2 kB / 370.5 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2075/0.3531, allocations: 1.536 MB / 372 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004897/0.3537, allocations: 0.8051 MB / 372.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.534e-05/0.3538, allocations: 9.812 kB / 372.8 MB, free: 18.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.3538, allocations: 27.5 kB / 372.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of SimCode: time 1.964e-06/0.3538, allocations: 0.7812 kB / 372.8 MB, free: 18.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01883/0.3727, allocations: 5.028 MB / 377.9 MB, free: 18.3 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001486/0.3729, allocations: 178.8 kB / 378 MB, free: 18.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.858/2.231, allocations: 0 / 378 MB, free: 18.07 MB / 302.1 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