Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001752/0.001752, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002045/0.002045, allocations: 200.7 kB / 18.74 MB, free: 4.184 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.001873/0.001873, allocations: 63.89 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2499, allocations: 50.54 MB / 409.1 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.WiredX): time 0.003038/0.253, allocations: 1.824 MB / 410.9 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.2551, allocations: 0.9783 MB / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.939e-05/0.2552, allocations: 0 / 411.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000162/0.2554, allocations: 27.72 kB / 411.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.464e-05/0.2555, allocations: 35.7 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000347/0.2559, allocations: 94.02 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004236/0.2563, allocations: 315.5 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001441/0.2564, allocations: 61.53 kB / 412.4 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007928/0.2572, allocations: 0.7175 MB / 413.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.2575, allocations: 143.4 kB / 413.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.742e-05/0.2575, allocations: 20 kB / 413.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.828e-05/0.2576, allocations: 24 kB / 413.3 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001613/0.2578, allocations: 143.4 kB / 413.4 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002359/0.258, allocations: 234.2 kB / 413.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007309/0.2588, allocations: 0.7498 MB / 414.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.2588, allocations: 4 kB / 414.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2588, allocations: 0 / 414.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.172e-05/0.2588, allocations: 0 / 414.4 MB, free: 11.94 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: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001329/0.2601, allocations: 1.196 MB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.741e-05/0.2602, allocations: 8.031 kB / 415.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.395e-05/0.2603, allocations: 54.73 kB / 415.7 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.2604, allocations: 76.47 kB / 415.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004627/0.2609, allocations: 404.9 kB / 416.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.2609, allocations: 16.5 kB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.981e-05/0.261, allocations: 20.12 kB / 416.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005398/0.2615, allocations: 254.3 kB / 416.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2615, allocations: 0 / 416.4 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.794e-05/0.2616, allocations: 8 kB / 416.4 MB, free: 9.762 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-06/0.2616, allocations: 4 kB / 416.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.2619, allocations: 137.9 kB / 416.6 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001082/0.263, allocations: 0.7271 MB / 417.3 MB, free: 8.848 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003723/0.2634, allocations: 206.4 kB / 417.5 MB, free: 8.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002942/0.2637, allocations: 172.8 kB / 417.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.035e-05/0.2637, allocations: 7.984 kB / 417.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006395/0.2644, allocations: 386.9 kB / 418.1 MB, free: 8.043 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.864e-06/0.2644, allocations: 3.938 kB / 418.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=29): time 0.001509/0.2659, allocations: 0.9283 MB / 419 MB, free: 7.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001648/0.2661, allocations: 285 kB / 419.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001253/0.2673, allocations: 0.9569 MB / 420.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.926e-05/0.2674, allocations: 37.7 kB / 420.3 MB, free: 5.703 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.572e-05/0.2675, allocations: 130 kB / 420.4 MB, free: 5.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.114e-05/0.2676, allocations: 67.53 kB / 420.5 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.2678, allocations: 161.3 kB / 420.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.268, allocations: 334.8 kB / 420.9 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002579/0.2682, allocations: 124.2 kB / 421.1 MB, free: 4.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002846/0.2685, allocations: 172.8 kB / 421.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007138/0.2693, allocations: 0.695 MB / 421.9 MB, free: 3.898 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.2693, allocations: 4 kB / 421.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001066/0.2703, allocations: 0.7644 MB / 422.7 MB, free: 3.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.2705, allocations: 241.6 kB / 422.9 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.2705, allocations: 4 kB / 422.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.2706, allocations: 0 / 422.9 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.951e-05/0.2706, allocations: 11.98 kB / 422.9 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.2706, allocations: 4 kB / 422.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002267/0.2708, allocations: 27.88 kB / 423 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.271, allocations: 112.1 kB / 423.1 MB, free: 2.633 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,wiredX.auxiliary[2],wiredX.auxiliary[1],bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.x,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.yy,bUF3S1.nextstate,x_table1.y,e_table1.y,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.yy,bUF3S2.nextstate,x_table2.y,e_table2.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.wiredX.auxiliary[2],wiredX.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.0006342/0.2716, allocations: 0.6084 MB / 423.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.803e-05/0.2717, allocations: 79.53 kB / 423.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002185/0.272, allocations: 126.9 kB / 423.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.272, allocations: 0 / 423.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.272, allocations: 7.984 kB / 423.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.272, allocations: 0 / 423.9 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001796/0.2738, allocations: 1.425 MB / 425.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.2738, allocations: 0 / 425.3 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.687e-05/0.2738, allocations: 7.984 kB / 425.3 MB, free: 212 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.2738, allocations: 7.938 kB / 425.3 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.2739, allocations: 27.98 kB / 425.4 MB, free: 176 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.2739, allocations: 4 kB / 425.4 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2739, allocations: 0 / 425.4 MB, free: 172 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.2752, allocations: 0.9652 MB / 426.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000583/0.2758, allocations: 424.1 kB / 426.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.821e-05/0.2759, allocations: 20 kB / 426.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002209/0.2761, allocations: 23.97 kB / 426.8 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/0.2763, allocations: 55.95 kB / 426.9 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/0.2764, allocations: 119.8 kB / 427 MB, free: 14.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009201/0.2773, allocations: 0.6937 MB / 427.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2773, allocations: 0 / 427.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000363/0.2777, allocations: 92 kB / 427.8 MB, free: 13.71 MB / 350.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.001656/0.2794, allocations: 1.553 MB / 429.3 MB, free: 12.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001045/0.2804, allocations: 0.8857 MB / 430.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2804, allocations: 0 / 430.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006754/0.2811, allocations: 0.753 MB / 430.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.2822, allocations: 271.3 kB / 431.2 MB, free: 10 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006064/0.2883, allocations: 4.632 MB / 435.8 MB, free: 5.223 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006706/0.289, allocations: 0.9364 MB / 436.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002174/0.2892, allocations: 93.33 kB / 436.9 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.2894, allocations: 95.33 kB / 437 MB, free: 4.074 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.2894, allocations: 0 / 437 MB, free: 4.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03467/0.324, allocations: 11.73 MB / 448.7 MB, free: 8.488 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.331, allocations: 10.23 kB / 448.7 MB, free: 8.484 MB / 366.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_4_1_0-beta_om_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1)