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.001258/0.001258, allocations: 117.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 199.9 kB / 18.73 MB, free: 4.312 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.375/1.375, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.001872/0.001872, allocations: 63.89 kB / 358.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.247, allocations: 50.55 MB / 409.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Rectifier): time 0.004949/0.252, allocations: 4.271 MB / 413.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.2536, allocations: 1.015 MB / 414.4 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.2538, allocations: 11.94 kB / 414.4 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002209/0.2541, allocations: 99 kB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004236/0.2545, allocations: 190.3 kB / 414.7 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003507/0.2549, allocations: 191.7 kB / 414.9 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000694/0.2556, allocations: 0.74 MB / 415.6 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003152/0.2559, allocations: 219 kB / 415.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003484/0.2563, allocations: 294.9 kB / 416.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003713/0.2566, allocations: 326.5 kB / 416.4 MB, free: 9.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.385e-05/0.2567, allocations: 60 kB / 416.5 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001255/0.2569, allocations: 67.98 kB / 416.6 MB, free: 9.855 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.257, allocations: 147.5 kB / 416.7 MB, free: 9.711 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002842/0.2573, allocations: 330.3 kB / 417 MB, free: 9.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006903/0.258, allocations: 0.7235 MB / 417.7 MB, free: 8.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.258, allocations: 0 / 417.7 MB, free: 8.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.258, allocations: 0 / 417.7 MB, free: 8.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.258, allocations: 0 / 417.7 MB, free: 8.66 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001401/0.2594, allocations: 0.9385 MB / 418.7 MB, free: 7.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.2595, allocations: 12.03 kB / 418.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.2596, allocations: 107.8 kB / 418.8 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003267/0.26, allocations: 96.48 kB / 418.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005161/0.2605, allocations: 414.1 kB / 419.3 MB, free: 7.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.2605, allocations: 41.69 kB / 419.3 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.332e-05/0.2606, allocations: 56.33 kB / 419.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008856/0.2615, allocations: 0.581 MB / 420 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.2615, allocations: 0 / 420 MB, free: 6.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.577e-05/0.2616, allocations: 20 kB / 420 MB, free: 6.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.2616, allocations: 15.94 kB / 420 MB, free: 6.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008436/0.2624, allocations: 461 kB / 420.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00264/0.2651, allocations: 2.079 MB / 422.5 MB, free: 3.645 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008742/0.266, allocations: 0.6377 MB / 423.2 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005759/0.2666, allocations: 398.2 kB / 423.6 MB, free: 2.586 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.203e-05/0.2666, allocations: 16.55 kB / 423.6 MB, free: 2.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.2667, allocations: 39.12 kB / 423.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=60): time 1.744e-06/0.2667, allocations: 0 / 423.6 MB, free: 2.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.004218/0.2709, allocations: 2.037 MB / 425.7 MB, free: 376 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.342e-05/0.271, allocations: 67.89 kB / 425.7 MB, free: 296 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000385/0.2713, allocations: 361.7 kB / 426.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.421e-05/0.2714, allocations: 37.7 kB / 426.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.2716, allocations: 249.3 kB / 426.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.2717, allocations: 210.2 kB / 426.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001363/0.2719, allocations: 90.25 kB / 426.7 MB, free: 15.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.272, allocations: 362.7 kB / 427 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.2723, allocations: 173 kB / 427.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003432/0.2727, allocations: 203.8 kB / 427.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006579/0.2734, allocations: 384.9 kB / 427.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2734, allocations: 0 / 427.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001196/0.2746, allocations: 0.6775 MB / 428.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.2746, allocations: 4 kB / 428.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.2746, allocations: 0 / 428.4 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007078/0.2753, allocations: 267.1 kB / 428.7 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002821/0.2756, allocations: 59.91 kB / 428.7 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006676/0.2823, allocations: 7.503 MB / 436.3 MB, free: 5.121 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002891/0.2826, allocations: 20.02 kB / 436.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.145e-05/0.2827, allocations: 12 kB / 436.3 MB, free: 5.09 MB / 350.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.0002265/0.2829, allocations: 181.8 kB / 436.5 MB, free: 4.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.431e-05/0.283, allocations: 59.59 kB / 436.5 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.2831, allocations: 65.03 kB / 436.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.2831, allocations: 4 kB / 436.6 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.577e-06/0.2831, allocations: 4 kB / 436.6 MB, free: 4.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.962e-06/0.2832, allocations: 3.984 kB / 436.6 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002038/0.2852, allocations: 1.349 MB / 437.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.387e-06/0.2852, allocations: 8.109 kB / 438 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.2855, allocations: 59.91 kB / 438 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006581/0.2862, allocations: 259.4 kB / 438.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.2862, allocations: 12 kB / 438.3 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006569/0.2928, allocations: 7.517 MB / 445.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2928, allocations: 0 / 445.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001717/0.2945, allocations: 1.03 MB / 446.8 MB, free: 9.875 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.2947, allocations: 164.8 kB / 447 MB, free: 9.695 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.875e-05/0.2948, allocations: 11.98 kB / 447 MB, free: 9.684 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.2951, allocations: 16 kB / 447 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.2952, allocations: 52.42 kB / 447.1 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.202e-05/0.2952, allocations: 19.94 kB / 447.1 MB, free: 9.598 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002649/0.2955, allocations: 263.2 kB / 447.3 MB, free: 9.348 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2955, allocations: 0 / 447.3 MB, free: 9.348 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008003/0.2963, allocations: 176 kB / 447.5 MB, free: 9.176 MB / 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.001998/0.2983, allocations: 1.594 MB / 449.1 MB, free: 7.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001552/0.2999, allocations: 1.049 MB / 450.2 MB, free: 6.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.2999, allocations: 0 / 450.2 MB, free: 6.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.301, allocations: 0.8569 MB / 451 MB, free: 5.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004711/0.3015, allocations: 92.95 kB / 451.1 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00695/0.3085, allocations: 5.109 MB / 456.2 MB, free: 232 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005031/0.309, allocations: 0.8871 MB / 457.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000157/0.3092, allocations: 48.55 kB / 457.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.3094, allocations: 171.4 kB / 457.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3094, allocations: 4 kB / 457.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2364/0.5458, allocations: 13.91 MB / 471.2 MB, free: 1.391 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.02/13.57, allocations: 8.938 kB / 471.2 MB, free: 1.387 MB / 382.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)