Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.BUF3S,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001016/0.001016, allocations: 99.23 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009631/0.0009631, allocations: 176.6 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.709/1.709, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004664/0.0004667, allocations: 12 kB / 280.8 MB, free: 3.66 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1285, allocations: 47.58 MB / 328.4 MB, free: 4.012 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001886/0.1304, allocations: 1.198 MB / 329.6 MB, free: 2.805 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00184/0.1323, allocations: 0.8592 MB / 330.5 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.985e-05/0.1324, allocations: 4 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.991e-05/0.1325, allocations: 3.938 kB / 330.5 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 8.55e-05/0.1326, allocations: 11.97 kB / 330.5 MB, free: 1.918 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002382/0.1328, allocations: 39.84 kB / 330.5 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.1329, allocations: 67.91 kB / 330.6 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.1331, allocations: 27.91 kB / 330.6 MB, free: 1.785 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004715/0.1335, allocations: 291.5 kB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001181/0.1337, allocations: 71.83 kB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.1337, allocations: 4 kB / 331 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.583e-05/0.1337, allocations: 4 kB / 331 MB, free: 1.422 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.883e-05/0.1338, allocations: 59.77 kB / 331.1 MB, free: 1.363 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.134, allocations: 73.52 kB / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003823/0.1344, allocations: 275.3 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.1344, allocations: 0 / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1344, allocations: 0 / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.1344, allocations: 0 / 331.4 MB, free: 1.016 MB / 270.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.0006879/0.1351, allocations: 0.6646 MB / 332.1 MB, free: 284 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.1351, allocations: 15.97 kB / 332.1 MB, free: 268 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.551e-05/0.1352, allocations: 42.56 kB / 332.1 MB, free: 216 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.314e-05/0.1353, allocations: 35.53 kB / 332.1 MB, free: 180 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004782/0.1357, allocations: 257.3 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.1358, allocations: 8 kB / 332.4 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.067e-05/0.1358, allocations: 8 kB / 332.4 MB, free: 15.87 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003109/0.1361, allocations: 121.6 kB / 332.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.1362, allocations: 0 / 332.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.636e-05/0.1362, allocations: 4 kB / 332.5 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.1362, allocations: 3.938 kB / 332.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.1363, allocations: 59.97 kB / 332.6 MB, free: 15.68 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006961/0.137, allocations: 464.6 kB / 333.1 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002032/0.1373, allocations: 94.48 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.778e-06/0.1373, allocations: 3.938 kB / 333.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003451/0.1376, allocations: 214.8 kB / 333.4 MB, free: 14.83 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.1376, allocations: 0 / 333.4 MB, free: 14.83 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009053/0.1386, allocations: 0.6037 MB / 334 MB, free: 14.16 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.1387, allocations: 170.2 kB / 334.1 MB, free: 13.96 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006922/0.1394, allocations: 0.5167 MB / 334.6 MB, free: 13.43 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.081e-05/0.1394, allocations: 37.69 kB / 334.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.389e-05/0.1395, allocations: 93.14 kB / 334.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.239e-05/0.1396, allocations: 35.64 kB / 334.8 MB, free: 13.26 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.547e-05/0.1396, allocations: 4 kB / 334.8 MB, free: 13.26 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.1398, allocations: 326.8 kB / 335.1 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001388/0.14, allocations: 51.97 kB / 335.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001363/0.1401, allocations: 69.69 kB / 335.2 MB, free: 12.8 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.1403, allocations: 162.7 kB / 335.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.1403, allocations: 0 / 335.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005594/0.1409, allocations: 384.3 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001296/0.1411, allocations: 118.8 kB / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1411, allocations: 0 / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.1411, allocations: 4 kB / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.052e-05/0.1411, allocations: 0 / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.39e-05/0.1412, allocations: 4.172 kB / 335.9 MB, free: 12.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001845/0.1414, allocations: 27.83 kB / 335.9 MB, free: 12.04 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.9e-05/0.1414, allocations: 43.95 kB / 336 MB, free: 12 MB / 286.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.0004757/0.1419, allocations: 366.3 kB / 336.3 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.393e-05/0.142, allocations: 35.62 kB / 336.4 MB, free: 11.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.1421, allocations: 67.12 kB / 336.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.604e-06/0.1421, allocations: 0 / 336.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.1421, allocations: 0 / 336.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.1421, allocations: 0 / 336.4 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001139/0.1433, allocations: 0.8017 MB / 337.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1433, allocations: 3.938 kB / 337.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.418e-06/0.1433, allocations: 0 / 337.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.1433, allocations: 4 kB / 337.2 MB, free: 10.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.1434, allocations: 8 kB / 337.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1434, allocations: 3.984 kB / 337.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.717e-06/0.1434, allocations: 4 kB / 337.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007553/0.1442, allocations: 0.5216 MB / 337.8 MB, free: 10.03 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.1445, allocations: 248.3 kB / 338 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.145e-05/0.1446, allocations: 11.98 kB / 338 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.1448, allocations: 20 kB / 338.1 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.1449, allocations: 19.97 kB / 338.1 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.215e-05/0.145, allocations: 47.92 kB / 338.1 MB, free: 9.668 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005371/0.1455, allocations: 390.8 kB / 338.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1455, allocations: 0 / 338.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.1458, allocations: 47.95 kB / 338.6 MB, free: 9.242 MB / 286.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.001109/0.1469, allocations: 1.082 MB / 339.6 MB, free: 8.109 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006402/0.1476, allocations: 441.7 kB / 340.1 MB, free: 7.629 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1476, allocations: 0 / 340.1 MB, free: 7.629 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.148, allocations: 377.6 kB / 340.4 MB, free: 7.211 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005487/0.1486, allocations: 97.45 kB / 340.5 MB, free: 7.113 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.1514, allocations: 1.598 MB / 342.1 MB, free: 5.461 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006746/0.1521, allocations: 0.8025 MB / 342.9 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.724e-05/0.1521, allocations: 8.656 kB / 342.9 MB, free: 4.625 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.945e-05/0.1522, allocations: 31.42 kB / 343 MB, free: 4.594 MB / 286.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1522, allocations: 0 / 343 MB, free: 4.594 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02062/0.1729, allocations: 5.01 MB / 348 MB, free: 15.59 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003369/0.1733, allocations: 174.1 kB / 348.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.761/1.934, allocations: 0 / 348.1 MB, free: 15.34 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_BUF3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.BUF3S_res.mat does not exist to compare? outputFormat=mat