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.001112/0.001112, allocations: 97.8 kB / 16.3 MB, free: 5.992 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.001191/0.001191, allocations: 182.1 kB / 17.19 MB, free: 5.906 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.544/1.544, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1709/0.1709, allocations: 38.04 MB / 309.7 MB, free: 6.137 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.0005379/0.000538, allocations: 12 kB / 376.6 MB, free: 3.105 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2221, allocations: 56.33 MB / 432.9 MB, free: 18.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.004803/0.2269, allocations: 6.278 MB / 439.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.2291, allocations: 1.747 MB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003362/0.2295, allocations: 43.69 kB / 441 MB, free: 10.71 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003853/0.2299, allocations: 155.1 kB / 441.1 MB, free: 10.56 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006036/0.2305, allocations: 362.8 kB / 441.5 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.2309, allocations: 211.7 kB / 441.7 MB, free: 9.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004814/0.2314, allocations: 0.5613 MB / 442.3 MB, free: 9.434 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.2317, allocations: 247.6 kB / 442.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003242/0.232, allocations: 342.8 kB / 442.8 MB, free: 8.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004079/0.2324, allocations: 362.8 kB / 443.2 MB, free: 8.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.734e-05/0.2325, allocations: 32 kB / 443.2 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.066e-05/0.2326, allocations: 32 kB / 443.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.2328, allocations: 251.3 kB / 443.5 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001007/0.2329, allocations: 157.3 kB / 443.6 MB, free: 8.031 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.2333, allocations: 0.6585 MB / 444.3 MB, free: 7.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.2333, allocations: 0 / 444.3 MB, free: 7.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2333, allocations: 0 / 444.3 MB, free: 7.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.025e-06/0.2333, allocations: 4 kB / 444.3 MB, free: 7.367 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.001545/0.2349, allocations: 0.9178 MB / 445.2 MB, free: 6.398 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.359e-05/0.2349, allocations: 8.031 kB / 445.2 MB, free: 6.391 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001071/0.235, allocations: 114.4 kB / 445.3 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001104/0.2352, allocations: 79.05 kB / 445.4 MB, free: 6.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008667/0.236, allocations: 0.5331 MB / 446 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001424/0.2362, allocations: 116.7 kB / 446.1 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.409e-05/0.2363, allocations: 55.91 kB / 446.1 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.2373, allocations: 0.7927 MB / 446.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2374, allocations: 12 kB / 446.9 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.96e-05/0.2374, allocations: 23.95 kB / 446.9 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.27e-05/0.2375, allocations: 36.97 kB / 447 MB, free: 4.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001088/0.2386, allocations: 0.722 MB / 447.7 MB, free: 3.812 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.00333/0.242, allocations: 2.755 MB / 450.5 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.2434, allocations: 0.9247 MB / 451.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.209e-05/0.2435, allocations: 8.672 kB / 451.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.2435, allocations: 34.56 kB / 451.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=38): time 2.014e-06/0.2435, allocations: 4 kB / 451.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=39): time 0.00364/0.2472, allocations: 2.019 MB / 453.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.2472, allocations: 85.14 kB / 453.5 MB, free: 13.68 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004194/0.2477, allocations: 421.8 kB / 453.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.565e-05/0.2477, allocations: 33.7 kB / 454 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.2479, allocations: 316.2 kB / 454.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.248, allocations: 142 kB / 454.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.522e-05/0.2481, allocations: 15.94 kB / 454.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.2482, allocations: 358.8 kB / 454.8 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004761/0.2487, allocations: 249 kB / 455 MB, free: 12.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005566/0.2493, allocations: 374.1 kB / 455.4 MB, free: 11.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.2498, allocations: 275.6 kB / 455.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2498, allocations: 0 / 455.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001339/0.2511, allocations: 0.8192 MB / 456.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.2512, allocations: 4 kB / 456.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2512, allocations: 7.938 kB / 456.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/0.2514, allocations: 85.81 kB / 456.6 MB, free: 10.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.2529, allocations: 371.6 kB / 456.9 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005642/0.2585, allocations: 6.218 MB / 463.2 MB, free: 3.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005005/0.2591, allocations: 52.2 kB / 463.2 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.2591, allocations: 16 kB / 463.2 MB, free: 3.336 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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003761/0.2595, allocations: 237.7 kB / 463.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/0.2596, allocations: 51.38 kB / 463.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.261, allocations: 0.7573 MB / 464.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.212e-06/0.261, allocations: 4 kB / 464.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.261, allocations: 4 kB / 464.3 MB, free: 2.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.261, allocations: 3.984 kB / 464.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002533/0.2636, allocations: 1.549 MB / 465.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.2636, allocations: 0 / 465.8 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/0.2653, allocations: 403.6 kB / 466.2 MB, free: 220 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002636/0.2655, allocations: 85.64 kB / 466.3 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.2656, allocations: 15.98 kB / 466.3 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002148/0.2677, allocations: 2.895 MB / 469.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.2678, allocations: 0 / 469.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.2697, allocations: 1.213 MB / 470.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.2699, allocations: 120.5 kB / 470.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.796e-05/0.2699, allocations: 16.03 kB / 470.6 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003255/0.2703, allocations: 39.97 kB / 470.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000112/0.2704, allocations: 39.88 kB / 470.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.2704, allocations: 12 kB / 470.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.2707, allocations: 291.1 kB / 470.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2707, allocations: 0 / 470.9 MB, free: 11.14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006275/0.2714, allocations: 136 kB / 471.1 MB, free: 11.01 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002178/0.2736, allocations: 1.952 MB / 473 MB, free: 8.984 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002552/0.2761, allocations: 1.118 MB / 474.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2762, allocations: 0 / 474.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001918/0.2781, allocations: 0.8253 MB / 475 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006569/0.2787, allocations: 138.4 kB / 475.1 MB, free: 6.855 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006187/0.2849, allocations: 6.084 MB / 481.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005322/0.2855, allocations: 0.9562 MB / 482.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003309/0.2859, allocations: 96.55 kB / 482.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.2861, allocations: 203.4 kB / 482.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.2861, allocations: 0 / 482.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.3119, allocations: 12.02 MB / 494.5 MB, free: 3.387 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.3122, allocations: 210.6 kB / 494.7 MB, free: 3.148 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.862/2.174, allocations: 0 / 494.7 MB, free: 3.148 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/linux/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) Environment - environmentSimulation: