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.001208/0.001208, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.00128/0.00128, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.359/1.359, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1741/0.1741, allocations: 38.02 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 68.42 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1035, allocations: 58.05 MB / 457 MB, free: 7.977 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.007644/0.1111, allocations: 6.343 MB / 463.3 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.1134, allocations: 1.441 MB / 464.7 MB, free: 160 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/0.1136, allocations: 27.81 kB / 464.8 MB, free: 132 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005107/0.1142, allocations: 154.9 kB / 464.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007528/0.1149, allocations: 425.9 kB / 465.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.1154, allocations: 207.6 kB / 465.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.1164, allocations: 1.122 MB / 466.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004493/0.1169, allocations: 348.6 kB / 467 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005527/0.1174, allocations: 478.2 kB / 467.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007232/0.1182, allocations: 0.5295 MB / 468 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.958e-05/0.1183, allocations: 64 kB / 468.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1184, allocations: 71.94 kB / 468.1 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002787/0.1187, allocations: 311.3 kB / 468.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003508/0.1191, allocations: 374.3 kB / 468.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00074/0.1198, allocations: 0.8527 MB / 469.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1198, allocations: 4 kB / 469.7 MB, free: 11.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1198, allocations: 4 kB / 469.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1198, allocations: 0 / 469.7 MB, free: 11.22 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.001942/0.1218, allocations: 1.027 MB / 470.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.1218, allocations: 11.89 kB / 470.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.122, allocations: 102.7 kB / 470.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.1221, allocations: 72.09 kB / 470.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008467/0.123, allocations: 0.5572 MB / 471.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001578/0.1231, allocations: 124.6 kB / 471.5 MB, free: 9.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.139e-05/0.1232, allocations: 59.98 kB / 471.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.1245, allocations: 0.7889 MB / 472.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1246, allocations: 0 / 472.4 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.837e-05/0.1246, allocations: 23.94 kB / 472.4 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001522/0.1248, allocations: 40.91 kB / 472.5 MB, free: 8.273 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.1261, allocations: 0.6908 MB / 473.1 MB, free: 7.582 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.00391/0.13, allocations: 2.704 MB / 475.9 MB, free: 4.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00174/0.1318, allocations: 0.8811 MB / 476.7 MB, free: 3.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005987/0.1324, allocations: 328.4 kB / 477.1 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.222e-05/0.1324, allocations: 8 kB / 477.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/0.1325, allocations: 38.5 kB / 477.1 MB, free: 3.461 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.894e-06/0.1325, allocations: 0 / 477.1 MB, free: 3.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.003925/0.1364, allocations: 1.941 MB / 479 MB, free: 1.402 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.989e-05/0.1365, allocations: 93.02 kB / 479.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004631/0.1369, allocations: 425.9 kB / 479.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.608e-05/0.137, allocations: 33.7 kB / 479.6 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.1372, allocations: 316.2 kB / 479.9 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001064/0.1373, allocations: 138 kB / 480 MB, free: 388 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001432/0.1375, allocations: 82.25 kB / 480.1 MB, free: 300 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.1376, allocations: 354.8 kB / 480.5 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/0.1381, allocations: 244.9 kB / 480.7 MB, free: 15.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005737/0.1387, allocations: 346.3 kB / 481 MB, free: 15.31 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/0.1398, allocations: 0.5822 MB / 481.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1398, allocations: 0 / 481.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001419/0.1412, allocations: 0.7882 MB / 482.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.1412, allocations: 8 kB / 482.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1413, allocations: 4 kB / 482.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.1415, allocations: 73.66 kB / 482.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001431/0.143, allocations: 287.7 kB / 482.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006011/0.149, allocations: 6.524 MB / 489.3 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003987/0.1494, allocations: 27.97 kB / 489.3 MB, free: 6.387 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.693e-05/0.1495, allocations: 27.92 kB / 489.3 MB, free: 6.359 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.0003207/0.1498, allocations: 237.8 kB / 489.6 MB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.887e-05/0.1499, allocations: 47.44 kB / 489.6 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001348/0.1512, allocations: 0.7335 MB / 490.4 MB, free: 5.309 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1513, allocations: 4 kB / 490.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.1513, allocations: 0 / 490.4 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1513, allocations: 3.984 kB / 490.4 MB, free: 5.301 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002498/0.1538, allocations: 1.502 MB / 491.9 MB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/0.1538, allocations: 3.984 kB / 491.9 MB, free: 3.703 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001632/0.1554, allocations: 295.6 kB / 492.2 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002653/0.1557, allocations: 89.62 kB / 492.2 MB, free: 3.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.876e-05/0.1558, allocations: 19.98 kB / 492.3 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002369/0.1582, allocations: 3.157 MB / 495.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.1582, allocations: 11.95 kB / 495.4 MB, free: 15.85 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.16, allocations: 1.117 MB / 496.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1602, allocations: 120.6 kB / 496.7 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.32e-05/0.1603, allocations: 8 kB / 496.7 MB, free: 14.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003485/0.1606, allocations: 35.95 kB / 496.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.1608, allocations: 39.89 kB / 496.7 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.598e-05/0.1608, allocations: 8 kB / 496.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003385/0.1611, allocations: 299.1 kB / 497 MB, free: 14.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1612, allocations: 0 / 497 MB, free: 14.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006421/0.1618, allocations: 136 kB / 497.2 MB, free: 14.03 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.002123/0.1639, allocations: 1.666 MB / 498.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00271/0.1667, allocations: 1.056 MB / 499.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1667, allocations: 0 / 499.9 MB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.1686, allocations: 0.7282 MB / 0.4889 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008085/0.1694, allocations: 151.7 kB / 0.489 GB, free: 10.32 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008234/0.1777, allocations: 5.554 MB / 0.4945 GB, free: 4.535 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005815/0.1783, allocations: 0.9448 MB / 0.4954 GB, free: 3.562 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003349/0.1786, allocations: 96.55 kB / 0.4955 GB, free: 3.469 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000279/0.1789, allocations: 195.4 kB / 0.4957 GB, free: 3.277 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1789, allocations: 0 / 0.4957 GB, free: 3.277 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04233/0.2213, allocations: 12.67 MB / 0.508 GB, free: 6.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.29, allocations: 8.062 kB / 0.508 GB, free: 6.77 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)