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.00126/0.00126, allocations: 99.52 kB / 16.96 MB, free: 6.109 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.001193/0.001193, allocations: 179 kB / 17.84 MB, free: 5.73 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.92/1.92, allocations: 205.4 MB / 224 MB, free: 13.08 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.0005074/0.0005075, allocations: 12.94 kB / 280.9 MB, free: 3.641 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1149, allocations: 47.59 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.BUF3S): time 0.001704/0.1167, allocations: 1.196 MB / 329.6 MB, free: 2.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.1184, allocations: 0.856 MB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.596e-05/0.1185, allocations: 4 kB / 330.5 MB, free: 1.906 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 7.216e-05/0.1185, allocations: 7.922 kB / 330.5 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.825e-05/0.1186, allocations: 11.92 kB / 330.5 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002325/0.1189, allocations: 35.89 kB / 330.6 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.119, allocations: 107.8 kB / 330.7 MB, free: 1.746 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.759e-05/0.1191, allocations: 16 kB / 330.7 MB, free: 1.73 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004374/0.1195, allocations: 343.4 kB / 331 MB, free: 1.395 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.1197, allocations: 83.69 kB / 331.1 MB, free: 1.312 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.1197, allocations: 7.938 kB / 331.1 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.349e-05/0.1198, allocations: 4 kB / 331.1 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.1198, allocations: 55.83 kB / 331.2 MB, free: 1.246 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 8.18e-05/0.1199, allocations: 73.52 kB / 331.2 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.1202, allocations: 275.4 kB / 331.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.1202, allocations: 0 / 331.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1202, allocations: 0 / 331.5 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.488e-06/0.1202, allocations: 0 / 331.5 MB, free: 0.8984 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.0006882/0.1209, allocations: 0.6685 MB / 332.2 MB, free: 160 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.121, allocations: 12.03 kB / 332.2 MB, free: 148 kB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.406e-05/0.121, allocations: 42.55 kB / 332.2 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.891e-05/0.1211, allocations: 35.53 kB / 332.3 MB, free: 60 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003016/0.1214, allocations: 261.3 kB / 332.5 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.1214, allocations: 8 kB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.126e-05/0.1215, allocations: 8 kB / 332.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002894/0.1218, allocations: 125.6 kB / 332.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.1218, allocations: 0 / 332.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.1218, allocations: 4 kB / 332.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1218, allocations: 4 kB / 332.7 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001248/0.1219, allocations: 55.97 kB / 332.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005863/0.1225, allocations: 456.5 kB / 333.2 MB, free: 15.06 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.1227, allocations: 90.55 kB / 333.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001422/0.1229, allocations: 92.88 kB / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.835e-06/0.1229, allocations: 112 / 333.3 MB, free: 14.87 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003116/0.1232, allocations: 210.5 kB / 333.6 MB, free: 14.64 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.323e-06/0.1232, allocations: 0 / 333.6 MB, free: 14.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007199/0.124, allocations: 464.1 kB / 334 MB, free: 14.15 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.973e-05/0.1241, allocations: 170.2 kB / 334.2 MB, free: 13.95 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000588/0.1247, allocations: 0.5206 MB / 334.7 MB, free: 13.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.104e-05/0.1247, allocations: 37.7 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.622e-05/0.1248, allocations: 97.12 kB / 334.8 MB, free: 13.28 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.1248, allocations: 27.59 kB / 334.9 MB, free: 13.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.406e-05/0.1248, allocations: 4 kB / 334.9 MB, free: 13.25 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.125, allocations: 326.8 kB / 335.2 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.1251, allocations: 55.97 kB / 335.2 MB, free: 12.87 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001251/0.1252, allocations: 73.67 kB / 335.3 MB, free: 12.79 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000164/0.1254, allocations: 162.8 kB / 335.5 MB, free: 12.61 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1254, allocations: 0 / 335.5 MB, free: 12.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004909/0.1259, allocations: 372.3 kB / 335.8 MB, free: 12.21 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.213e-05/0.126, allocations: 128.8 kB / 335.9 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.126, allocations: 0 / 335.9 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.126, allocations: 3.984 kB / 336 MB, free: 12.06 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.122e-05/0.1261, allocations: 8.062 kB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.1261, allocations: 0 / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001529/0.1262, allocations: 23.84 kB / 336 MB, free: 12.03 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.973e-05/0.1263, allocations: 44 kB / 336 MB, free: 11.98 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.0003131/0.1266, allocations: 358.3 kB / 336.4 MB, free: 11.6 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.443e-05/0.1267, allocations: 35.62 kB / 336.4 MB, free: 11.56 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.982e-05/0.1268, allocations: 59.16 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1268, allocations: 4 kB / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.1268, allocations: 0 / 336.5 MB, free: 11.5 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1268, allocations: 3.938 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008844/0.1277, allocations: 0.8095 MB / 337.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.1277, allocations: 4 kB / 337.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.1277, allocations: 3.984 kB / 337.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.1277, allocations: 4 kB / 337.3 MB, free: 10.59 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.147e-05/0.1278, allocations: 12 kB / 337.3 MB, free: 10.58 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1278, allocations: 3.938 kB / 337.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1278, allocations: 0 / 337.3 MB, free: 10.57 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006036/0.1284, allocations: 0.5254 MB / 337.8 MB, free: 10.01 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.1287, allocations: 248.3 kB / 338.1 MB, free: 9.746 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.088e-05/0.1287, allocations: 16 kB / 338.1 MB, free: 9.73 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.1289, allocations: 11.98 kB / 338.1 MB, free: 9.719 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.129, allocations: 23.97 kB / 338.1 MB, free: 9.695 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.602e-05/0.129, allocations: 43.94 kB / 338.2 MB, free: 9.652 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004415/0.1295, allocations: 394.8 kB / 338.6 MB, free: 9.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1295, allocations: 0 / 338.6 MB, free: 9.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002784/0.1298, allocations: 40 kB / 338.6 MB, free: 9.23 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.0009567/0.1308, allocations: 1.086 MB / 339.7 MB, free: 8.094 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004791/0.1312, allocations: 433.6 kB / 340.1 MB, free: 7.621 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1313, allocations: 0 / 340.1 MB, free: 7.621 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003962/0.1317, allocations: 369.6 kB / 340.5 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.0005635/0.1322, allocations: 105.4 kB / 340.6 MB, free: 7.105 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002343/0.1346, allocations: 1.553 MB / 342.1 MB, free: 5.5 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/0.1351, allocations: 0.8025 MB / 342.9 MB, free: 4.672 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 6.385e-05/0.1351, allocations: 16.62 kB / 342.9 MB, free: 4.656 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.374e-05/0.1352, allocations: 23.44 kB / 343 MB, free: 4.633 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1352, allocations: 3.938 kB / 343 MB, free: 4.629 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.1515, allocations: 5.034 MB / 348 MB, free: 15.6 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001987/0.1518, allocations: 174.9 kB / 348.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.011/2.163, allocations: 4 kB / 348.2 MB, free: 15.36 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