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.001278/0.001279, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001945/0.001945, allocations: 212.6 kB / 18.58 MB, free: 4.578 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.447/1.447, allocations: 227.7 MB / 247 MB, free: 10.36 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.00194/0.00194, allocations: 68.09 kB / 307.3 MB, free: 420 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1046, allocations: 50.54 MB / 357.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.006136/0.1108, allocations: 4.271 MB / 362.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002201/0.113, allocations: 1.012 MB / 363.2 MB, free: 8.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003091/0.1134, allocations: 11.94 kB / 363.2 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003051/0.1137, allocations: 99 kB / 363.3 MB, free: 8.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005389/0.1142, allocations: 194.3 kB / 363.5 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003941/0.1146, allocations: 195.7 kB / 363.6 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007351/0.1154, allocations: 0.7283 MB / 364.4 MB, free: 7.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003203/0.1157, allocations: 223 kB / 364.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.1161, allocations: 290.9 kB / 364.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003793/0.1165, allocations: 334.5 kB / 365.2 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.554e-05/0.1166, allocations: 60 kB / 365.3 MB, free: 6.426 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000122/0.1167, allocations: 64 kB / 365.3 MB, free: 6.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.1169, allocations: 147.5 kB / 365.5 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002941/0.1172, allocations: 326.3 kB / 365.8 MB, free: 5.898 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007511/0.1179, allocations: 0.7084 MB / 366.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.1179, allocations: 0 / 366.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1179, allocations: 4 kB / 366.5 MB, free: 5.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.118, allocations: 0 / 366.5 MB, free: 5.184 MB / 302.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.001455/0.1194, allocations: 0.9196 MB / 367.4 MB, free: 4.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.1195, allocations: 8.031 kB / 367.4 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.1196, allocations: 111.8 kB / 367.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003533/0.12, allocations: 96.06 kB / 367.6 MB, free: 3.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004655/0.1204, allocations: 401.8 kB / 368 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.129e-05/0.1205, allocations: 45.69 kB / 368.1 MB, free: 3.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.1206, allocations: 52.38 kB / 368.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009381/0.1215, allocations: 0.5693 MB / 368.7 MB, free: 2.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.1215, allocations: 3.938 kB / 368.7 MB, free: 2.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.862e-05/0.1216, allocations: 28 kB / 368.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.1216, allocations: 12 kB / 368.7 MB, free: 2.828 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008905/0.1225, allocations: 468.9 kB / 369.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002946/0.1255, allocations: 2.09 MB / 371.3 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1726/0.2982, allocations: 0.6387 MB / 371.9 MB, free: 20 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005953/0.2988, allocations: 399 kB / 372.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.2988, allocations: 10.36 kB / 372.3 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.2989, allocations: 42 kB / 372.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of pre-optimization done (n=60): time 2.435e-06/0.2989, allocations: 0.8438 kB / 372.4 MB, free: 19.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004186/0.3031, allocations: 2.042 MB / 374.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.3031, allocations: 59.16 kB / 374.5 MB, free: 19 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000394/0.3035, allocations: 373.1 kB / 374.8 MB, free: 18.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.671e-05/0.3035, allocations: 36.23 kB / 374.9 MB, free: 18.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.3037, allocations: 241.8 kB / 375.1 MB, free: 18.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.986e-05/0.3038, allocations: 200.6 kB / 375.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.3039, allocations: 95.03 kB / 375.4 MB, free: 18.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.378e-05/0.304, allocations: 357.4 kB / 375.7 MB, free: 18.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003005/0.3043, allocations: 169.8 kB / 375.9 MB, free: 18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003257/0.3046, allocations: 212.2 kB / 376.1 MB, free: 17.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005997/0.3052, allocations: 382.6 kB / 376.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3052, allocations: 0 / 376.5 MB, free: 17.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001084/0.3063, allocations: 0.6691 MB / 377.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.3063, allocations: 8.719 kB / 377.2 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.3063, allocations: 3.828 kB / 377.2 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006686/0.307, allocations: 254.3 kB / 377.4 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002998/0.3073, allocations: 63.95 kB / 377.5 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004924/0.3123, allocations: 7.493 MB / 385 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.3126, allocations: 18.53 kB / 385 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.845e-05/0.3126, allocations: 21.47 kB / 385 MB, free: 10.45 MB / 302.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.0001925/0.3128, allocations: 176.1 kB / 385.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.131e-05/0.3129, allocations: 51.44 kB / 385.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.313, allocations: 67.78 kB / 385.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.313, allocations: 5.812 kB / 385.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.196e-05/0.3131, allocations: 1.938 kB / 385.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.842e-06/0.3131, allocations: 6.281 kB / 385.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/0.315, allocations: 1.353 MB / 386.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.315, allocations: 8.469 kB / 386.7 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000274/0.3153, allocations: 60.12 kB / 386.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006377/0.3159, allocations: 263.7 kB / 387 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.316, allocations: 13.06 kB / 387 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005485/0.3215, allocations: 7.503 MB / 394.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.3215, allocations: 1.891 kB / 394.5 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001652/0.3232, allocations: 1.029 MB / 395.5 MB, free: 1.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001724/0.3234, allocations: 158.6 kB / 395.7 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.927e-05/0.3234, allocations: 14.66 kB / 395.7 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002608/0.3237, allocations: 24.81 kB / 395.7 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001642/0.3239, allocations: 53.52 kB / 395.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.864e-05/0.3239, allocations: 15.44 kB / 395.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002716/0.3242, allocations: 264.5 kB / 396 MB, free: 1.637 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3242, allocations: 0 / 396 MB, free: 1.637 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009209/0.3251, allocations: 173.6 kB / 396.2 MB, free: 1.617 MB / 302.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.001768/0.3269, allocations: 1.598 MB / 397.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001592/0.3285, allocations: 1.057 MB / 398.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3285, allocations: 0 / 398.9 MB, free: 15.87 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.3297, allocations: 0.8517 MB / 399.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00056/0.3303, allocations: 91.56 kB / 399.8 MB, free: 15.21 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007808/0.3381, allocations: 5.23 MB / 405 MB, free: 12.19 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005313/0.3387, allocations: 0.8858 MB / 405.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001961/0.3389, allocations: 55.66 kB / 406 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002235/0.3391, allocations: 174.2 kB / 406.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3391, allocations: 0 / 406.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05492/0.394, allocations: 13.64 MB / 419.8 MB, free: 15.5 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.56/12.96, allocations: 3.938 kB / 419.8 MB, free: 15.5 MB / 334.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)