Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_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.001111/0.001111, allocations: 113.2 kB / 17.73 MB, free: 5.34 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.001188/0.001188, allocations: 184.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.341/1.341, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08182/0.08298, allocations: 46.62 MB / 374.7 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier): time 0.1756/0.2586, allocations: 6.257 MB / 380.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004206/0.2629, allocations: 2.166 MB / 383.1 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006447/0.2636, allocations: 21.44 kB / 383.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002284/0.2659, allocations: 0.7689 MB / 383.9 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002329/0.2682, allocations: 0.78 MB / 384.6 MB, free: 8.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.2695, allocations: 495.9 kB / 385.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001635/0.2712, allocations: 1.198 MB / 386.3 MB, free: 7.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/0.2726, allocations: 0.8364 MB / 387.2 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007087/0.2734, allocations: 472.2 kB / 387.6 MB, free: 7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007469/0.2741, allocations: 0.5427 MB / 388.2 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001913/0.2743, allocations: 111.3 kB / 388.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007608/0.2751, allocations: 275.2 kB / 388.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002211/0.2753, allocations: 249.5 kB / 388.8 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006465/0.276, allocations: 0.5513 MB / 389.3 MB, free: 6.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001878/0.2779, allocations: 1.465 MB / 390.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2779, allocations: 0 / 390.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2779, allocations: 0 / 390.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.343e-05/0.2779, allocations: 4 kB / 390.8 MB, free: 5.508 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.003049/0.281, allocations: 1.44 MB / 392.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.281, allocations: 10.03 kB / 392.3 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002151/0.2813, allocations: 161 kB / 392.4 MB, free: 4.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003166/0.2844, allocations: 476.4 kB / 392.9 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.2856, allocations: 0.5705 MB / 393.5 MB, free: 3.949 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.463e-05/0.2857, allocations: 77.31 kB / 393.5 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002112/0.2859, allocations: 109.9 kB / 393.6 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/0.2885, allocations: 1.058 MB / 394.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.349e-05/0.2886, allocations: 1.594 kB / 394.7 MB, free: 3.391 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001333/0.2887, allocations: 43.05 kB / 394.7 MB, free: 3.359 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.223e-05/0.2888, allocations: 29.56 kB / 394.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002614/0.2914, allocations: 0.9183 MB / 395.7 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00708/0.2985, allocations: 3.721 MB / 399.4 MB, free: 0.6367 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003488/0.302, allocations: 2.485 MB / 401.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/0.3034, allocations: 470.3 kB / 402.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001459/0.3035, allocations: 97.02 kB / 402.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001323/0.3049, allocations: 0.4944 MB / 402.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of pre-optimization done (n=86): time 4.388e-06/0.3049, allocations: 0 / 402.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of matching and sorting (n=86): time 0.006167/0.3111, allocations: 1.696 MB / 404.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001077/0.3112, allocations: 195.5 kB / 404.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006712/0.3119, allocations: 476.2 kB / 405.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.738e-05/0.312, allocations: 42.55 kB / 405.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003718/0.3123, allocations: 434.3 kB / 405.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.3126, allocations: 285.9 kB / 406 MB, free: 11.7 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000255/0.3128, allocations: 167.6 kB / 406.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.313, allocations: 381.3 kB / 406.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005835/0.3136, allocations: 279.5 kB / 406.8 MB, free: 11.1 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007267/0.3143, allocations: 0.5181 MB / 407.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.3156, allocations: 0.8091 MB / 408.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.3156, allocations: 2.844 kB / 408.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.002103/0.3177, allocations: 1.079 MB / 409.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.163e-05/0.3178, allocations: 7.531 kB / 409.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.3178, allocations: 6.344 kB / 409.3 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008749/0.3187, allocations: 271.7 kB / 409.5 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005982/0.3193, allocations: 162.5 kB / 409.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005361/0.3247, allocations: 4.86 MB / 414.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007354/0.3254, allocations: 109.2 kB / 414.7 MB, free: 5.027 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/0.3255, allocations: 37.75 kB / 414.7 MB, free: 5.02 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,iDC2.mean.y,$PRE.iDC2.mean.y,iAC.mean2.y,$PRE.iAC.mean2.y,iAC.mean1.y,$PRE.iAC.mean1.y,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 (90): * Single equations (assignments): 88 * 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.0004858/0.326, allocations: 247.6 kB / 414.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001244/0.3261, allocations: 70.38 kB / 415 MB, free: 4.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.3281, allocations: 0.9643 MB / 416 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.3281, allocations: 8.094 kB / 416 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.3281, allocations: 1.344 kB / 416 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.3282, allocations: 7.969 kB / 416 MB, free: 4.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003205/0.3314, allocations: 1.943 MB / 417.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.237e-06/0.3314, allocations: 0 / 417.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004336/0.3318, allocations: 103.5 kB / 418 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007541/0.3326, allocations: 266.8 kB / 418.3 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.24e-05/0.3327, allocations: 21.5 kB / 418.3 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005244/0.3379, allocations: 4.804 MB / 423.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3379, allocations: 0 / 423.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002816/0.3408, allocations: 1.393 MB / 424.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004798/0.3413, allocations: 220.2 kB / 424.7 MB, free: 12.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001784/0.3414, allocations: 16 kB / 424.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005433/0.342, allocations: 47.84 kB / 424.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002012/0.3422, allocations: 76.84 kB / 424.9 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.146e-05/0.3423, allocations: 27.92 kB / 424.9 MB, free: 11.97 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004931/0.3428, allocations: 322.9 kB / 425.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3428, allocations: 0 / 425.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001332/0.3441, allocations: 319 kB / 425.5 MB, free: 11.34 MB / 350.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,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * 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 (59): * Single equations (assignments): 54 * 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.003168/0.3473, allocations: 1.981 MB / 427.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.3495, allocations: 1.113 MB / 428.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.3496, allocations: 0 / 428.6 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.3508, allocations: 0.7392 MB / 429.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007257/0.3515, allocations: 135.4 kB / 429.5 MB, free: 7.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.3628, allocations: 6.645 MB / 436.1 MB, free: 376 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007298/0.3636, allocations: 0.9983 MB / 437.1 MB, free: 15.34 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003685/0.364, allocations: 85.66 kB / 437.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004731/0.3644, allocations: 327.3 kB / 437.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3644, allocations: 0 / 437.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05279/0.4172, allocations: 19.49 MB / 457 MB, free: 11.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.24/15.66, allocations: 3.781 kB / 457 MB, free: 11.36 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.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_3_2_3_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier.pipe 2>&1)