Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) 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(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_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.000993/0.0009932, allocations: 101.3 kB / 16.5 MB, free: 6.648 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.0009576/0.0009576, allocations: 194.4 kB / 17.42 MB, free: 6.066 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.326/1.326, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1715/0.1715, allocations: 37.99 MB / 308.6 MB, free: 6.246 MB / 254.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.001367/0.001367, allocations: 67.45 kB / 374.7 MB, free: 4.016 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2469, allocations: 55.24 MB / 430 MB, free: 19.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.006727/0.2537, allocations: 7.388 MB / 437.4 MB, free: 12.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002655/0.2564, allocations: 1.793 MB / 439.1 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004007/0.2568, allocations: 47.69 kB / 439.2 MB, free: 10.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004584/0.2573, allocations: 127.2 kB / 439.3 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006509/0.258, allocations: 406.2 kB / 439.7 MB, free: 9.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003652/0.2584, allocations: 183.8 kB / 439.9 MB, free: 9.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009294/0.2593, allocations: 1.672 MB / 441.6 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.2596, allocations: 294.9 kB / 441.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003938/0.26, allocations: 406.2 kB / 442.2 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000565/0.2606, allocations: 0.5568 MB / 442.8 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.297e-05/0.2607, allocations: 40 kB / 442.8 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.2608, allocations: 40 kB / 442.9 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002014/0.261, allocations: 287.2 kB / 443.2 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002623/0.2613, allocations: 346.3 kB / 443.5 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004962/0.2618, allocations: 0.8449 MB / 444.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2618, allocations: 0 / 444.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2618, allocations: 0 / 444.3 MB, free: 5.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.206e-06/0.2618, allocations: 0 / 444.3 MB, free: 5.332 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.001716/0.2635, allocations: 1.031 MB / 445.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2636, allocations: 8.031 kB / 445.4 MB, free: 4.242 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.309e-05/0.2637, allocations: 102.6 kB / 445.5 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.2638, allocations: 76.09 kB / 445.6 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.2645, allocations: 0.5573 MB / 446.1 MB, free: 3.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/0.2646, allocations: 124.6 kB / 446.2 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.567e-05/0.2647, allocations: 52 kB / 446.3 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.2658, allocations: 0.785 MB / 447.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.2658, allocations: 0 / 447.1 MB, free: 2.457 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.091e-05/0.2658, allocations: 20 kB / 447.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.266, allocations: 40.97 kB / 447.1 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.267, allocations: 0.6908 MB / 447.8 MB, free: 1.707 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00354/0.2706, allocations: 2.716 MB / 450.5 MB, free: 14.88 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001646/0.2722, allocations: 0.8703 MB / 451.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005466/0.2728, allocations: 333.3 kB / 451.7 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.662e-05/0.2728, allocations: 7.938 kB / 451.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.378e-05/0.2729, allocations: 42.5 kB / 451.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.044e-06/0.2729, allocations: 0 / 451.8 MB, free: 13.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.00359/0.2765, allocations: 1.929 MB / 453.7 MB, free: 11.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.2766, allocations: 92.98 kB / 453.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004406/0.277, allocations: 417.9 kB / 454.2 MB, free: 10.99 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.277, allocations: 33.7 kB / 454.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000213/0.2773, allocations: 316.2 kB / 454.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.2774, allocations: 141.9 kB / 454.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/0.2775, allocations: 86.25 kB / 454.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.2777, allocations: 354.8 kB / 455.1 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004415/0.2782, allocations: 241 kB / 455.4 MB, free: 9.816 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004882/0.2787, allocations: 350.3 kB / 455.7 MB, free: 9.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009145/0.2796, allocations: 0.5778 MB / 456.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2796, allocations: 4 kB / 456.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001308/0.2809, allocations: 0.7881 MB / 457.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.2809, allocations: 4 kB / 457.1 MB, free: 7.977 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.2809, allocations: 4 kB / 457.1 MB, free: 7.973 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002745/0.2812, allocations: 77.66 kB / 457.2 MB, free: 7.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.2826, allocations: 291.8 kB / 457.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005392/0.288, allocations: 6.01 MB / 463.4 MB, free: 1.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004513/0.2884, allocations: 40.06 kB / 463.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.676e-05/0.2885, allocations: 20 kB / 463.5 MB, free: 1.004 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003647/0.2889, allocations: 234.5 kB / 463.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.172e-05/0.289, allocations: 51.44 kB / 463.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001343/0.2903, allocations: 0.7335 MB / 464.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.2903, allocations: 4 kB / 464.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2903, allocations: 3.938 kB / 464.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2903, allocations: 0 / 464.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002248/0.2926, allocations: 1.506 MB / 466 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.2926, allocations: 0 / 466 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001384/0.294, allocations: 299.6 kB / 466.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002532/0.2943, allocations: 89.56 kB / 466.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.661e-05/0.2943, allocations: 15.94 kB / 466.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00214/0.2965, allocations: 2.88 MB / 469.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2965, allocations: 3.938 kB / 469.3 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001731/0.2982, allocations: 1.122 MB / 470.4 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001104/0.2983, allocations: 128.5 kB / 470.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.53e-05/0.2984, allocations: 8 kB / 470.6 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.2987, allocations: 31.95 kB / 470.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.2988, allocations: 39.94 kB / 470.6 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.97e-05/0.2989, allocations: 16 kB / 470.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003012/0.2992, allocations: 295.1 kB / 470.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2992, allocations: 0 / 470.9 MB, free: 9.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006362/0.2998, allocations: 140 kB / 471.1 MB, free: 8.965 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001984/0.3018, allocations: 1.669 MB / 472.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.3041, allocations: 0.9972 MB / 473.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.3041, allocations: 0 / 473.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001653/0.3058, allocations: 0.7201 MB / 474.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.3065, allocations: 137.5 kB / 474.6 MB, free: 5.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007269/0.3138, allocations: 5.781 MB / 480.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005315/0.3144, allocations: 0.9484 MB / 481.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003211/0.3147, allocations: 100.5 kB / 481.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002604/0.315, allocations: 195.4 kB / 481.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.315, allocations: 0 / 481.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.038/0.353, allocations: 12.15 MB / 493.8 MB, free: 1.918 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001918/0.3532, allocations: 236.1 kB / 494 MB, free: 1.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.013/2.366, allocations: 3.938 kB / 494 MB, free: 1.656 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)