Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.MUX2x1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001814/0.001814, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002155/0.002155, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.42/1.42, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001838/0.001838, allocations: 71.88 kB / 358.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2675, allocations: 50.55 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002847/0.2703, allocations: 1.571 MB / 410.6 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001929/0.2723, allocations: 0.8926 MB / 411.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.206e-05/0.2724, allocations: 4 kB / 411.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.669e-05/0.2725, allocations: 11.86 kB / 411.5 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.428e-05/0.2726, allocations: 27.78 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002927/0.2729, allocations: 47.89 kB / 411.6 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002545/0.2732, allocations: 175.6 kB / 411.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001121/0.2733, allocations: 29.39 kB / 411.8 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006904/0.274, allocations: 0.62 MB / 412.4 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001482/0.2741, allocations: 75.64 kB / 412.5 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.382e-05/0.2742, allocations: 12 kB / 412.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.199e-05/0.2742, allocations: 12 kB / 412.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.2744, allocations: 79.69 kB / 412.6 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.2745, allocations: 139 kB / 412.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.275, allocations: 453.1 kB / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2751, allocations: 0 / 413.2 MB, free: 13.21 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.287e-06/0.2751, allocations: 7.938 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.332e-06/0.2751, allocations: 3.938 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001001/0.2761, allocations: 0.8255 MB / 414 MB, free: 12.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2761, allocations: 8.031 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.087e-05/0.2762, allocations: 46.73 kB / 414.1 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.97e-05/0.2763, allocations: 44.66 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003362/0.2766, allocations: 290.6 kB / 414.4 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.2767, allocations: 8.375 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.127e-05/0.2767, allocations: 12.38 kB / 414.4 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003783/0.2771, allocations: 177.6 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.2771, allocations: 0 / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.843e-05/0.2771, allocations: 4 kB / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.19e-06/0.2772, allocations: 0 / 414.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.2773, allocations: 83.95 kB / 414.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008401/0.2782, allocations: 0.5081 MB / 415.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002348/0.2784, allocations: 122.5 kB / 415.3 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002047/0.2787, allocations: 108.9 kB / 415.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.205e-05/0.2787, allocations: 4 kB / 415.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004786/0.2792, allocations: 242.6 kB / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.572e-06/0.2792, allocations: 0 / 415.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001097/0.2803, allocations: 0.6072 MB / 416.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.2804, allocations: 199.9 kB / 416.5 MB, free: 9.629 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007448/0.2812, allocations: 0.564 MB / 417 MB, free: 9.047 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.2812, allocations: 29.7 kB / 417.1 MB, free: 9.012 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.2813, allocations: 117.1 kB / 417.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.175e-05/0.2814, allocations: 39.72 kB / 417.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001441/0.2815, allocations: 97.5 kB / 417.3 MB, free: 8.754 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.2817, allocations: 334.9 kB / 417.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.2819, allocations: 79.91 kB / 417.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.2821, allocations: 113 kB / 417.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004991/0.2826, allocations: 426.7 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2826, allocations: 0 / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007517/0.2834, allocations: 0.498 MB / 418.7 MB, free: 7.207 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.2835, allocations: 156.5 kB / 418.9 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2835, allocations: 4 kB / 418.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.2836, allocations: 0 / 418.9 MB, free: 7.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.063e-05/0.2836, allocations: 4.031 kB / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.2836, allocations: 0 / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001662/0.2838, allocations: 15.98 kB / 418.9 MB, free: 7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.2839, allocations: 97.25 kB / 419 MB, free: 6.906 MB / 334.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: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000425/0.2843, allocations: 415.9 kB / 419.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.523e-05/0.2844, allocations: 47.72 kB / 419.5 MB, free: 6.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.2845, allocations: 71.47 kB / 419.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.2845, allocations: 0 / 419.5 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.2845, allocations: 4 kB / 419.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2845, allocations: 0 / 419.5 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.2858, allocations: 0.9673 MB / 420.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.2858, allocations: 0 / 420.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.875e-06/0.2858, allocations: 3.938 kB / 420.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.2858, allocations: 0 / 420.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/0.2859, allocations: 23.98 kB / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.2859, allocations: 3.938 kB / 420.5 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2859, allocations: 3.984 kB / 420.5 MB, free: 5.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008823/0.2868, allocations: 0.6628 MB / 421.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003454/0.2871, allocations: 256.6 kB / 421.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.554e-05/0.2872, allocations: 12 kB / 421.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2873, allocations: 15.92 kB / 421.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.2875, allocations: 55.94 kB / 421.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001192/0.2876, allocations: 109.2 kB / 421.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005516/0.2882, allocations: 418.8 kB / 422.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2882, allocations: 0 / 422.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003013/0.2885, allocations: 52 kB / 422.1 MB, free: 3.633 MB / 334.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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001277/0.2898, allocations: 1.224 MB / 423.3 MB, free: 2.352 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006827/0.2905, allocations: 0.5362 MB / 423.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2905, allocations: 0 / 423.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004582/0.291, allocations: 473 kB / 424.3 MB, free: 1.23 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008647/0.2918, allocations: 186.2 kB / 424.5 MB, free: 1.062 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004239/0.2961, allocations: 3.226 MB / 427.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005236/0.2966, allocations: 0.822 MB / 428.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.234e-05/0.2967, allocations: 16.86 kB / 428.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.49e-05/0.2968, allocations: 47.42 kB / 428.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2968, allocations: 0 / 428.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03148/0.3283, allocations: 9.245 MB / 437.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.958/8.287, allocations: 4.828 kB / 437.9 MB, free: 3.531 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1_res.csv --start-time 0 --stop-time 15 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.006 Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1)