Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier.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.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Rectifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001295/0.001295, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001388/0.001388, allocations: 199.5 kB / 18.79 MB, free: 4.156 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.386/1.386, allocations: 230.4 MB / 250 MB, free: 9.074 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.001855/0.001855, allocations: 71.83 kB / 366.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2508, allocations: 53.31 MB / 420.2 MB, free: 8.266 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.005635/0.2565, allocations: 4.289 MB / 424.5 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.2583, allocations: 1.023 MB / 425.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.2585, allocations: 8 kB / 425.5 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.2588, allocations: 99 kB / 425.6 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004848/0.2593, allocations: 198.2 kB / 425.8 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003927/0.2597, allocations: 191.7 kB / 426 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000792/0.2605, allocations: 0.7361 MB / 426.7 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003021/0.2608, allocations: 159.1 kB / 426.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004036/0.2612, allocations: 290.8 kB / 427.2 MB, free: 1.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004179/0.2616, allocations: 330.5 kB / 427.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.217e-05/0.2617, allocations: 64 kB / 427.6 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.2618, allocations: 60 kB / 427.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001834/0.262, allocations: 147.4 kB / 427.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003324/0.2623, allocations: 338.3 kB / 428.1 MB, free: 348 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008742/0.2632, allocations: 0.7196 MB / 428.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2632, allocations: 0 / 428.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2632, allocations: 0 / 428.8 MB, free: 15.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2632, allocations: 3.938 kB / 428.8 MB, free: 15.61 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001624/0.2649, allocations: 0.9375 MB / 429.7 MB, free: 14.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.2649, allocations: 12.03 kB / 429.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001721/0.2651, allocations: 111.9 kB / 429.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003719/0.2655, allocations: 104.4 kB / 430 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006526/0.2661, allocations: 402.2 kB / 430.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.999e-05/0.2662, allocations: 41.69 kB / 430.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.746e-05/0.2662, allocations: 60.27 kB / 430.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009888/0.2672, allocations: 0.5771 MB / 431 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.2672, allocations: 0 / 431 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.658e-05/0.2673, allocations: 20 kB / 431.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.368e-05/0.2673, allocations: 12 kB / 431.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008666/0.2682, allocations: 472.9 kB / 431.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002845/0.271, allocations: 2.083 MB / 433.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009103/0.2719, allocations: 0.5908 MB / 434.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006125/0.2725, allocations: 358.2 kB / 434.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.2726, allocations: 8.562 kB / 434.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.2726, allocations: 43.06 kB / 434.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=60): time 1.744e-06/0.2726, allocations: 0 / 434.6 MB, free: 9.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.004315/0.2769, allocations: 2.029 MB / 436.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.277, allocations: 59.97 kB / 436.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004172/0.2774, allocations: 365.7 kB / 437.1 MB, free: 6.973 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.07e-05/0.2774, allocations: 37.7 kB / 437.1 MB, free: 6.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001778/0.2776, allocations: 249.3 kB / 437.3 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.2778, allocations: 214.2 kB / 437.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001434/0.2779, allocations: 90.25 kB / 437.6 MB, free: 6.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.2781, allocations: 358.7 kB / 438 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003403/0.2784, allocations: 173 kB / 438.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003643/0.2788, allocations: 211.8 kB / 438.4 MB, free: 5.633 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00068/0.2795, allocations: 384.8 kB / 438.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.2795, allocations: 0 / 438.7 MB, free: 5.254 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001198/0.2807, allocations: 0.6541 MB / 439.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.2807, allocations: 8 kB / 439.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.2807, allocations: 3.938 kB / 439.4 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007068/0.2814, allocations: 259.2 kB / 439.7 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/0.2817, allocations: 63.91 kB / 439.7 MB, free: 4.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007309/0.289, allocations: 7.499 MB / 447.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002744/0.2893, allocations: 20.02 kB / 447.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.367e-05/0.2893, allocations: 16 kB / 447.2 MB, free: 12.15 MB / 366.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: 6 (IdealDiode6.off,IdealDiode5.off,IdealDiode4.off,IdealDiode3.off,IdealDiode2.off,IdealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002546/0.2896, allocations: 177.8 kB / 447.4 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.778e-05/0.2896, allocations: 59.61 kB / 447.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.2898, allocations: 65.09 kB / 447.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.2898, allocations: 12 kB / 447.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/0.2898, allocations: 0 / 447.6 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-06/0.2898, allocations: 3.984 kB / 447.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002152/0.292, allocations: 1.341 MB / 448.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.292, allocations: 0 / 448.9 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/0.2922, allocations: 55.91 kB / 449 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006525/0.2929, allocations: 263.5 kB / 449.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.2929, allocations: 15.98 kB / 449.2 MB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007069/0.3, allocations: 7.505 MB / 456.7 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3, allocations: 4.031 kB / 456.7 MB, free: 2.016 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.3018, allocations: 1.014 MB / 457.8 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.302, allocations: 160.8 kB / 457.9 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/0.302, allocations: 12 kB / 457.9 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.3023, allocations: 16.11 kB / 457.9 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.3024, allocations: 60.44 kB / 458 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.134e-05/0.3024, allocations: 19.92 kB / 458 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002851/0.3027, allocations: 263.2 kB / 458.3 MB, free: 452 kB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3027, allocations: 0 / 458.3 MB, free: 452 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008311/0.3036, allocations: 176 kB / 458.4 MB, free: 276 kB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(2,7), (2,7), (2,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002129/0.3057, allocations: 1.589 MB / 460 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001673/0.3074, allocations: 1.014 MB / 461 MB, free: 13.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3074, allocations: 4.062 kB / 461 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.3085, allocations: 0.8296 MB / 461.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004968/0.309, allocations: 85.83 kB / 462 MB, free: 12.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00738/0.3164, allocations: 5.079 MB / 467 MB, free: 7.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.3169, allocations: 0.8871 MB / 467.9 MB, free: 6.504 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001615/0.3171, allocations: 56.48 kB / 468 MB, free: 6.449 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.3173, allocations: 171.4 kB / 468.2 MB, free: 6.281 MB / 382.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3173, allocations: 0 / 468.2 MB, free: 6.281 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06121/0.3785, allocations: 14.18 MB / 482.3 MB, free: 8.312 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.7, allocations: 4.062 kB / 482.3 MB, free: 8.309 MB / 398.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Rectifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Rectifier.pipe 2>&1)