Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier.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.HeatingRectifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingRectifier,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingRectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001306/0.001306, allocations: 117.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.001366/0.001367, allocations: 200.6 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.401/1.401, allocations: 227.7 MB / 247.2 MB, free: 10.21 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.002681/0.002681, allocations: 63.91 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2748, allocations: 50.54 MB / 409.1 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingRectifier): time 0.004189/0.279, allocations: 2.546 MB / 411.6 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0014/0.2804, allocations: 0.6972 MB / 412.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2806, allocations: 4 kB / 412.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001483/0.2808, allocations: 31.66 kB / 412.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001392/0.2809, allocations: 75.33 kB / 412.4 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003108/0.2812, allocations: 99.69 kB / 412.5 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003172/0.2816, allocations: 274.8 kB / 412.8 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002019/0.2818, allocations: 92.31 kB / 412.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.282, allocations: 111.6 kB / 413 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.2822, allocations: 119.5 kB / 413.1 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.831e-05/0.2822, allocations: 20 kB / 413.1 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001038/0.2823, allocations: 47.97 kB / 413.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.974e-05/0.2824, allocations: 47.84 kB / 413.2 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.2825, allocations: 123.3 kB / 413.3 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003931/0.2829, allocations: 289.8 kB / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.2829, allocations: 0 / 413.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2829, allocations: 7.938 kB / 413.6 MB, free: 12.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.283, allocations: 0 / 413.6 MB, free: 12.79 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0009327/0.2839, allocations: 0.5377 MB / 414.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2839, allocations: 12.02 kB / 414.2 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.446e-05/0.284, allocations: 54.73 kB / 414.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.2842, allocations: 36.75 kB / 414.3 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003753/0.2846, allocations: 244 kB / 414.5 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.2846, allocations: 16.81 kB / 414.5 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.372e-05/0.2847, allocations: 20.38 kB / 414.5 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003785/0.285, allocations: 199.3 kB / 414.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.2851, allocations: 3.953 kB / 414.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.516e-05/0.2851, allocations: 12 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.2851, allocations: 4 kB / 414.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003227/0.2854, allocations: 145.7 kB / 414.9 MB, free: 11.42 MB / 334.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.2869, allocations: 0.9299 MB / 415.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.2872, allocations: 162.5 kB / 416 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002411/0.2875, allocations: 96.81 kB / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.263e-05/0.2875, allocations: 0 / 416.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.2875, allocations: 38.56 kB / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.042e-06/0.2875, allocations: 0 / 416.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001283/0.2888, allocations: 419 kB / 416.5 MB, free: 9.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.572e-05/0.2889, allocations: 59.41 kB / 416.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.2891, allocations: 180.3 kB / 416.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.2891, allocations: 25.7 kB / 416.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.2892, allocations: 148.3 kB / 416.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.2893, allocations: 67.42 kB / 417 MB, free: 9.133 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.371e-05/0.2894, allocations: 33.7 kB / 417 MB, free: 9.094 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.2895, allocations: 330.8 kB / 417.4 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.2896, allocations: 47.98 kB / 417.4 MB, free: 8.715 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.2898, allocations: 79.17 kB / 417.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002402/0.29, allocations: 125.6 kB / 417.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.29, allocations: 0 / 417.6 MB, free: 8.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004154/0.2905, allocations: 216.9 kB / 417.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.2905, allocations: 8 kB / 417.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2905, allocations: 7.969 kB / 417.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001345/0.2919, allocations: 220.6 kB / 418 MB, free: 8.051 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.292, allocations: 35.97 kB / 418.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00052/0.2925, allocations: 0.6108 MB / 418.7 MB, free: 7.379 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.2927, allocations: 19.91 kB / 418.7 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.462e-05/0.2927, allocations: 8 kB / 418.7 MB, free: 7.352 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001451/0.2928, allocations: 133.8 kB / 418.8 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.305e-05/0.2929, allocations: 15.91 kB / 418.9 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004765/0.2934, allocations: 228.2 kB / 419.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2934, allocations: 8.062 kB / 419.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.2934, allocations: 0 / 419.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.2934, allocations: 0 / 419.1 MB, free: 6.953 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009275/0.2944, allocations: 0.6012 MB / 419.7 MB, free: 6.289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.2944, allocations: 3.938 kB / 419.7 MB, free: 6.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.2945, allocations: 31.97 kB / 419.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001061/0.2956, allocations: 200.7 kB / 419.9 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.2956, allocations: 4 kB / 419.9 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005384/0.2962, allocations: 0.6226 MB / 420.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2962, allocations: 0 / 420.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008453/0.297, allocations: 428.8 kB / 421 MB, free: 4.961 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.717e-05/0.2971, allocations: 100.9 kB / 421.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.935e-05/0.2972, allocations: 4 kB / 421.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.2973, allocations: 12.05 kB / 421.1 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.733e-05/0.2973, allocations: 15.98 kB / 421.1 MB, free: 4.812 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.321e-05/0.2974, allocations: 4 kB / 421.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001411/0.2975, allocations: 132.1 kB / 421.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2975, allocations: 0 / 421.2 MB, free: 4.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.2978, allocations: 55.89 kB / 421.3 MB, free: 4.625 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001287/0.2991, allocations: 0.963 MB / 422.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004382/0.2996, allocations: 159.8 kB / 422.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2996, allocations: 0 / 422.4 MB, free: 3.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001933/0.2998, allocations: 87.97 kB / 422.5 MB, free: 3.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003483/0.3002, allocations: 31.05 kB / 422.5 MB, free: 3.359 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003371/0.3035, allocations: 2.339 MB / 424.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.3039, allocations: 0.7475 MB / 425.6 MB, free: 160 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.094e-05/0.304, allocations: 5.562 kB / 425.6 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.675e-05/0.3041, allocations: 63.41 kB / 425.7 MB, free: 88 kB / 334.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3041, allocations: 0 / 425.7 MB, free: 88 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03175/0.3359, allocations: 4.795 MB / 430.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.79/12.13, allocations: 11.88 kB / 430.5 MB, free: 11.45 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_HeatingRectifier.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.HeatingRectifier.pipe 2>&1)