Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001556/0.001556, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001897/0.001898, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 61.39 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.0957, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier): time 0.007808/0.1035, allocations: 6.269 MB / 363.9 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003874/0.1075, allocations: 2.231 MB / 366.1 MB, free: 5.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006662/0.1081, allocations: 23.94 kB / 366.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001895/0.1101, allocations: 0.7573 MB / 366.9 MB, free: 4.688 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001563/0.1117, allocations: 0.6094 MB / 367.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.1128, allocations: 0.5182 MB / 368 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.1141, allocations: 1.183 MB / 369.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00121/0.1153, allocations: 0.8471 MB / 370 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005866/0.1159, allocations: 466.2 kB / 370.5 MB, free: 1.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006799/0.1166, allocations: 0.5406 MB / 371 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002082/0.1168, allocations: 112 kB / 371.1 MB, free: 396 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000592/0.1174, allocations: 283.8 kB / 371.4 MB, free: 112 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1474/0.2648, allocations: 245.1 kB / 371.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006577/0.2655, allocations: 0.5464 MB / 372.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001697/0.2672, allocations: 1.459 MB / 373.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.2672, allocations: 1.062 kB / 373.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2672, allocations: 0 / 373.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.586e-05/0.2672, allocations: 0 / 373.7 MB, free: 10.93 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.003161/0.2704, allocations: 1.451 MB / 375.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.2704, allocations: 9.719 kB / 375.1 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002135/0.2707, allocations: 152.8 kB / 375.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002651/0.2733, allocations: 406.7 kB / 375.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.2745, allocations: 0.5702 MB / 376.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.509e-05/0.2746, allocations: 77.56 kB / 376.3 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001786/0.2748, allocations: 104.8 kB / 376.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001804/0.2766, allocations: 1.025 MB / 377.4 MB, free: 9.719 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.906e-05/0.2766, allocations: 8.438 kB / 377.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.11e-05/0.2767, allocations: 42.92 kB / 377.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/0.2767, allocations: 25.22 kB / 377.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.2784, allocations: 0.8537 MB / 378.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005017/0.2834, allocations: 3.632 MB / 382 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001862/0.2853, allocations: 1.902 MB / 383.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000881/0.2862, allocations: 469.2 kB / 384.4 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.2863, allocations: 175.2 kB / 384.5 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000825/0.2872, allocations: 0.492 MB / 385 MB, free: 5.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.425e-06/0.2872, allocations: 0 / 385 MB, free: 5.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=84): time 0.00435/0.2915, allocations: 1.688 MB / 386.7 MB, free: 4.82 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/0.2916, allocations: 193.8 kB / 386.9 MB, free: 4.598 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005195/0.2921, allocations: 478.1 kB / 387.4 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.596e-05/0.2922, allocations: 45.45 kB / 387.4 MB, free: 4.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.2924, allocations: 427.3 kB / 387.8 MB, free: 3.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001568/0.2926, allocations: 271.8 kB / 388.1 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000213/0.2928, allocations: 158.7 kB / 388.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.786e-05/0.2929, allocations: 381.3 kB / 388.6 MB, free: 3.359 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.2934, allocations: 270.4 kB / 388.9 MB, free: 3.262 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005942/0.294, allocations: 482.3 kB / 389.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.2951, allocations: 0.749 MB / 390.1 MB, free: 2.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.2952, allocations: 6.094 kB / 390.1 MB, free: 2.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001837/0.297, allocations: 1.031 MB / 391.1 MB, free: 2.043 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.297, allocations: 7.969 kB / 391.2 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.297, allocations: 4.5 kB / 391.2 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008064/0.2979, allocations: 277.4 kB / 391.4 MB, free: 1.961 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005384/0.2984, allocations: 143.9 kB / 391.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004833/0.3032, allocations: 4.853 MB / 396.4 MB, free: 14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.304, allocations: 105 kB / 396.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.152e-05/0.3041, allocations: 33.94 kB / 396.6 MB, free: 13.93 MB / 318.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.0004328/0.3045, allocations: 251.2 kB / 396.8 MB, free: 13.74 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.3046, allocations: 66.47 kB / 396.9 MB, free: 13.71 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002045/0.3067, allocations: 0.9711 MB / 397.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.3067, allocations: 12.19 kB / 397.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3067, allocations: 3.984 kB / 397.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3067, allocations: 5.359 kB / 397.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003244/0.31, allocations: 1.92 MB / 399.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.31, allocations: 4.031 kB / 399.8 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004293/0.3105, allocations: 96.98 kB / 399.9 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/0.3112, allocations: 264.4 kB / 400.1 MB, free: 11.83 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.1e-05/0.3113, allocations: 23.48 kB / 400.2 MB, free: 11.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004895/0.3162, allocations: 4.818 MB / 405 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.3162, allocations: 6.406 kB / 405 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002473/0.3187, allocations: 1.378 MB / 406.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003414/0.319, allocations: 210 kB / 406.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.3192, allocations: 18.47 kB / 406.6 MB, free: 6.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000466/0.3196, allocations: 43.97 kB / 406.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.3198, allocations: 71.28 kB / 406.7 MB, free: 6.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.792e-05/0.3199, allocations: 29.61 kB / 406.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004636/0.3204, allocations: 322.2 kB / 407 MB, free: 6.367 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3204, allocations: 3.562 kB / 407 MB, free: 6.367 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001326/0.3217, allocations: 314.1 kB / 407.4 MB, free: 6.285 MB / 318.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.002958/0.3247, allocations: 1.974 MB / 409.3 MB, free: 4.422 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.3271, allocations: 1.119 MB / 410.4 MB, free: 3.305 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3271, allocations: 4.125 kB / 410.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.3282, allocations: 0.7388 MB / 411.2 MB, free: 2.547 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006636/0.3289, allocations: 130.7 kB / 411.3 MB, free: 2.43 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009567/0.3385, allocations: 6.751 MB / 418.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.3391, allocations: 0.9904 MB / 419.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003823/0.3395, allocations: 89.47 kB / 419.1 MB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003804/0.3398, allocations: 327.3 kB / 419.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3398, allocations: 0 / 419.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04676/0.3866, allocations: 19.2 MB / 438.7 MB, free: 7.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.39, allocations: 14.23 kB / 438.7 MB, free: 7.098 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_Rectifier.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier.pipe 2>&1)