Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 104.6 kB / 16.92 MB, free: 6.141 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 191.5 kB / 17.85 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.031/2.031, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 47.94 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1317, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.01462/0.1463, allocations: 6.222 MB / 356.4 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007513/0.1539, allocations: 2.126 MB / 358.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.1553, allocations: 23.94 kB / 358.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003222/0.1587, allocations: 0.7438 MB / 359.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004001/0.1627, allocations: 0.7644 MB / 360 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002151/0.1649, allocations: 0.4909 MB / 360.5 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00286/0.1677, allocations: 1.164 MB / 361.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002718/0.1705, allocations: 0.847 MB / 362.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001233/0.1718, allocations: 458.3 kB / 363 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.1731, allocations: 0.5367 MB / 363.5 MB, free: 6.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004276/0.1736, allocations: 112 kB / 363.6 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.1748, allocations: 271.8 kB / 363.9 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004597/0.1753, allocations: 247.1 kB / 364.1 MB, free: 6.266 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.1766, allocations: 0.5403 MB / 364.7 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003232/0.1799, allocations: 1.425 MB / 366.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.1799, allocations: 0 / 366.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1799, allocations: 0 / 366.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.997e-05/0.18, allocations: 4 kB / 366.1 MB, free: 4.289 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: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.005673/0.1857, allocations: 1.424 MB / 367.5 MB, free: 2.805 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.1858, allocations: 12.03 kB / 367.5 MB, free: 2.793 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004316/0.1862, allocations: 154.4 kB / 367.7 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004276/0.1905, allocations: 363.3 kB / 368.1 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.1921, allocations: 0.5577 MB / 368.6 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001032/0.1922, allocations: 78.38 kB / 368.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000267/0.1925, allocations: 100.4 kB / 368.8 MB, free: 1.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00315/0.1956, allocations: 1.023 MB / 369.8 MB, free: 468 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.744e-05/0.1957, allocations: 3.938 kB / 369.8 MB, free: 464 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.1959, allocations: 47.98 kB / 369.9 MB, free: 416 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.55e-05/0.1959, allocations: 24 kB / 369.9 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2731/0.469, allocations: 0.8483 MB / 370.7 MB, free: 25.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007746/0.4768, allocations: 3.543 MB / 374.3 MB, free: 23.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00268/0.4796, allocations: 1.905 MB / 376.2 MB, free: 21.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001032/0.4807, allocations: 465.2 kB / 376.6 MB, free: 21.51 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001017/0.4808, allocations: 93.08 kB / 376.7 MB, free: 21.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008969/0.4817, allocations: 0.4951 MB / 377.2 MB, free: 21.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 3.236e-06/0.4817, allocations: 0 / 377.2 MB, free: 21.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.005003/0.4867, allocations: 1.678 MB / 378.9 MB, free: 20.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.827e-05/0.4868, allocations: 195.8 kB / 379.1 MB, free: 20.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006927/0.4875, allocations: 465.8 kB / 379.5 MB, free: 20.03 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.917e-05/0.4876, allocations: 42.55 kB / 379.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003199/0.4879, allocations: 410.4 kB / 380 MB, free: 19.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002605/0.4882, allocations: 283.6 kB / 380.3 MB, free: 19.45 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002797/0.4885, allocations: 153.7 kB / 380.4 MB, free: 19.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4886, allocations: 370 kB / 380.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005995/0.4893, allocations: 267.4 kB / 381 MB, free: 18.94 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007311/0.49, allocations: 492 kB / 381.5 MB, free: 18.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001237/0.4912, allocations: 0.7381 MB / 382.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.674e-06/0.4913, allocations: 1.781 kB / 382.3 MB, free: 18.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.002311/0.4936, allocations: 1.025 MB / 383.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.4936, allocations: 7.25 kB / 383.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.4936, allocations: 5.156 kB / 383.3 MB, free: 17.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009737/0.4946, allocations: 280 kB / 383.6 MB, free: 17.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005991/0.4952, allocations: 144.2 kB / 383.7 MB, free: 17.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005272/0.5005, allocations: 4.869 MB / 388.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007502/0.5013, allocations: 103.5 kB / 388.7 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-05/0.5014, allocations: 31.2 kB / 388.7 MB, free: 13.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y_last,$PRE.iDC2.mean.y_last,iAC.mean2.y_last,$PRE.iAC.mean2.y_last,iAC.mean1.y_last,$PRE.iAC.mean1.y_last,rectifierAC.idealDiode4.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,8), (4,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0004916/0.5019, allocations: 250.4 kB / 389 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001721/0.5021, allocations: 66.09 kB / 389 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002157/0.5042, allocations: 0.9653 MB / 390 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.5043, allocations: 11.02 kB / 390 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.5043, allocations: 0 / 390 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.5043, allocations: 4.812 kB / 390 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003502/0.5078, allocations: 1.919 MB / 391.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.5078, allocations: 1 kB / 391.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004745/0.5083, allocations: 100.3 kB / 392 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008392/0.5092, allocations: 266 kB / 392.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.256e-05/0.5093, allocations: 21.42 kB / 392.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006942/0.5162, allocations: 4.801 MB / 397.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5162, allocations: 0 / 397.1 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00421/0.5205, allocations: 1.378 MB / 398.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004296/0.5209, allocations: 213.9 kB / 398.7 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000202/0.5212, allocations: 21.14 kB / 398.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005981/0.5218, allocations: 44.66 kB / 398.7 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002617/0.522, allocations: 75.78 kB / 398.8 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.319e-05/0.5221, allocations: 24.86 kB / 398.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000446/0.5226, allocations: 314.4 kB / 399.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5226, allocations: 0 / 399.2 MB, free: 6.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001648/0.5243, allocations: 310.5 kB / 399.5 MB, free: 6.207 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (voltageQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y_last,iAC.mean2.y_last,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y_last) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(2,8), (4,17)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002873/0.5272, allocations: 1.978 MB / 401.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.5295, allocations: 1.109 MB / 402.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.5296, allocations: 3.969 kB / 402.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001111/0.5307, allocations: 0.7359 MB / 403.3 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007426/0.5314, allocations: 113.6 kB / 403.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/0.5479, allocations: 6.632 MB / 410 MB, free: 12.54 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.549, allocations: 0.9904 MB / 411 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007005/0.5498, allocations: 77.34 kB / 411.1 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006658/0.5505, allocations: 327.3 kB / 411.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of SimCode: time 1.172e-06/0.5505, allocations: 0 / 411.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07862/0.6291, allocations: 18.82 MB / 430.2 MB, free: 8.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.39/18.02, allocations: 16.47 kB / 430.2 MB, free: 8.574 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1)