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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) 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(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.001107/0.001107, allocations: 106.7 kB / 16.62 MB, free: 6.809 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.001162/0.001162, allocations: 193.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.338/1.338, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1722/0.1722, allocations: 38.02 MB / 329.4 MB, free: 9 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 56.61 kB / 398.4 MB, free: 34.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09144/0.09255, allocations: 58.06 MB / 456.4 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007103/0.09968, allocations: 7.381 MB / 463.8 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003014/0.1027, allocations: 1.745 MB / 465.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006423/0.1034, allocations: 47.69 kB / 465.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004991/0.1039, allocations: 127.2 kB / 465.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008312/0.1048, allocations: 390.3 kB / 466.1 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.1052, allocations: 187.8 kB / 466.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008833/0.1061, allocations: 1.122 MB / 467.4 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.1065, allocations: 356.6 kB / 467.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004443/0.1069, allocations: 478.1 kB / 468.2 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005994/0.1075, allocations: 0.5685 MB / 468.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.008e-05/0.1076, allocations: 64 kB / 468.9 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001057/0.1078, allocations: 68 kB / 468.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.108, allocations: 323.2 kB / 469.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002996/0.1083, allocations: 374.3 kB / 469.6 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006394/0.109, allocations: 0.8605 MB / 470.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.109, allocations: 0 / 470.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.109, allocations: 0 / 470.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.396e-06/0.109, allocations: 4 kB / 470.5 MB, free: 10.23 MB / 350.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.001604/0.1106, allocations: 1.015 MB / 471.5 MB, free: 9.164 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.1106, allocations: 15.89 kB / 471.5 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.1108, allocations: 106.6 kB / 471.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.1109, allocations: 76 kB / 471.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007654/0.1116, allocations: 0.5612 MB / 472.3 MB, free: 8.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001386/0.1118, allocations: 120.6 kB / 472.4 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.98e-05/0.1119, allocations: 52 kB / 472.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.113, allocations: 0.7811 MB / 473.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.807e-05/0.1131, allocations: 3.938 kB / 473.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.36e-05/0.1131, allocations: 28 kB / 473.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.771e-05/0.1132, allocations: 32.97 kB / 473.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.1144, allocations: 0.6986 MB / 474 MB, free: 6.598 MB / 350.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.003425/0.1178, allocations: 2.693 MB / 476.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.1194, allocations: 0.8827 MB / 477.5 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000495/0.1199, allocations: 325.5 kB / 477.9 MB, free: 2.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.409e-05/0.1199, allocations: 4 kB / 477.9 MB, free: 2.535 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.12, allocations: 46.55 kB / 477.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.603e-06/0.12, allocations: 0 / 477.9 MB, free: 2.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003206/0.1232, allocations: 1.941 MB / 479.9 MB, free: 432 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.7e-05/0.1232, allocations: 85.05 kB / 479.9 MB, free: 328 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00038/0.1236, allocations: 429.9 kB / 480.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.1237, allocations: 29.7 kB / 480.4 MB, free: 15.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001671/0.1238, allocations: 320.2 kB / 480.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.362e-05/0.1239, allocations: 134 kB / 480.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1241, allocations: 86.25 kB / 480.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1242, allocations: 358.8 kB / 481.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004273/0.1246, allocations: 240.9 kB / 481.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004747/0.1251, allocations: 350.3 kB / 481.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00088/0.126, allocations: 0.5783 MB / 482.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.126, allocations: 0 / 482.4 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001208/0.1272, allocations: 0.7959 MB / 483.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.1272, allocations: 8 kB / 483.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1272, allocations: 4 kB / 483.2 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002078/0.1274, allocations: 73.67 kB / 483.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001215/0.1287, allocations: 291.6 kB / 483.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004929/0.1336, allocations: 6.501 MB / 490.1 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003019/0.1339, allocations: 39.95 kB / 490.1 MB, free: 5.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.606e-05/0.134, allocations: 23.92 kB / 490.1 MB, free: 5.387 MB / 366.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.0002319/0.1342, allocations: 256.5 kB / 490.4 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.896e-05/0.1343, allocations: 43.44 kB / 490.4 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.1354, allocations: 0.7334 MB / 491.2 MB, free: 4.324 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1355, allocations: 4 kB / 491.2 MB, free: 4.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1355, allocations: 4 kB / 491.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1355, allocations: 0 / 491.2 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002082/0.1376, allocations: 1.49 MB / 492.7 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1376, allocations: 4 kB / 492.7 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001372/0.139, allocations: 299.6 kB / 493 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002198/0.1392, allocations: 93.53 kB / 493.1 MB, free: 2.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.252e-05/0.1392, allocations: 8 kB / 493.1 MB, free: 2.332 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001877/0.1411, allocations: 3.165 MB / 496.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1411, allocations: 4.062 kB / 496.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.1427, allocations: 1.121 MB / 497.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.626e-05/0.1428, allocations: 112.5 kB / 497.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.237e-05/0.1428, allocations: 19.94 kB / 497.5 MB, free: 13.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002884/0.1431, allocations: 32 kB / 497.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.885e-05/0.1432, allocations: 43.88 kB / 497.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.1433, allocations: 12 kB / 497.6 MB, free: 13.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002515/0.1435, allocations: 291.1 kB / 497.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1435, allocations: 0 / 497.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005061/0.1441, allocations: 144 kB / 498 MB, free: 13.05 MB / 382.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.001803/0.1459, allocations: 1.662 MB / 499.7 MB, free: 11.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.1481, allocations: 1.056 MB / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.1481, allocations: 0 / 0.489 GB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.1498, allocations: 0.7319 MB / 0.4897 GB, free: 9.488 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006413/0.1504, allocations: 144 kB / 0.4898 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00654/0.157, allocations: 5.771 MB / 0.4955 GB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.1574, allocations: 0.9448 MB / 0.4964 GB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000277/0.1577, allocations: 104.5 kB / 0.4965 GB, free: 2.273 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.1579, allocations: 199.4 kB / 0.4967 GB, free: 2.078 MB / 382.1 MB Notification: Performance of SimCode: time 2.11e-07/0.158, allocations: 0 / 0.4967 GB, free: 2.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.539/1.697, allocations: 12.51 MB / 0.5089 GB, free: 5.781 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002613/1.697, allocations: 240.3 kB / 0.5091 GB, free: 5.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/4.178, allocations: 64 / 0.5091 GB, free: 5.52 MB / 398.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)