Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.0007813/0.0007813, allocations: 85.98 kB / 16.31 MB, free: 6.449 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.0007778/0.0007782, allocations: 183 kB / 17.21 MB, free: 6.316 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.642/1.642, allocations: 205.4 MB / 223.4 MB, free: 5.805 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3528/0.3528, allocations: 38.06 MB / 309.7 MB, free: 8.82 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.0005477/0.0005478, allocations: 20 kB / 376.6 MB, free: 15.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1248, allocations: 56.33 MB / 433 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.00574/0.1306, allocations: 4.256 MB / 437.2 MB, free: 2.461 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002508/0.1332, allocations: 1.116 MB / 438.3 MB, free: 1.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000553/0.1338, allocations: 27.81 kB / 438.4 MB, free: 1.312 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.1341, allocations: 55.53 kB / 438.4 MB, free: 1.258 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009057/0.135, allocations: 230.8 kB / 438.6 MB, free: 1.031 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003801/0.1354, allocations: 115.8 kB / 438.7 MB, free: 0.918 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007489/0.1362, allocations: 0.5177 MB / 439.3 MB, free: 408 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000256/0.1365, allocations: 118.1 kB / 439.4 MB, free: 288 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004204/0.1369, allocations: 171.1 kB / 439.5 MB, free: 116 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005311/0.1374, allocations: 239.3 kB / 439.8 MB, free: 15.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.988e-05/0.1375, allocations: 12 kB / 439.8 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.068e-05/0.1376, allocations: 16 kB / 439.8 MB, free: 15.85 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.1377, allocations: 103.7 kB / 439.9 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.1379, allocations: 89.52 kB / 440 MB, free: 15.65 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000341/0.1382, allocations: 267.3 kB / 440.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.1383, allocations: 0 / 440.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1383, allocations: 0 / 440.3 MB, free: 15.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.573e-05/0.1383, allocations: 0 / 440.3 MB, free: 15.39 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001583/0.1399, allocations: 0.6475 MB / 440.9 MB, free: 14.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.763e-05/0.1399, allocations: 12.03 kB / 440.9 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.1401, allocations: 66.47 kB / 441 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.1402, allocations: 39.53 kB / 441 MB, free: 14.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007116/0.1409, allocations: 374.6 kB / 441.4 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.987e-05/0.141, allocations: 16.56 kB / 441.4 MB, free: 14.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.955e-05/0.141, allocations: 24 kB / 441.4 MB, free: 14.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000595/0.1416, allocations: 364.7 kB / 441.8 MB, free: 13.74 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.1417, allocations: 11.89 kB / 441.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.074e-05/0.1417, allocations: 8 kB / 441.8 MB, free: 13.72 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.1417, allocations: 8 kB / 441.8 MB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004481/0.1422, allocations: 254 kB / 442.1 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.1441, allocations: 1.446 MB / 443.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002681/0.1444, allocations: 161 kB / 443.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.1445, allocations: 77.73 kB / 443.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.1446, allocations: 3.938 kB / 443.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.105e-05/0.1446, allocations: 34.56 kB / 443.8 MB, free: 11.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.1446, allocations: 8 kB / 443.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001252/0.1459, allocations: 0.6643 MB / 444.4 MB, free: 10.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.321e-05/0.146, allocations: 81.11 kB / 444.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003334/0.1463, allocations: 304.4 kB / 444.8 MB, free: 10.49 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.1463, allocations: 29.7 kB / 444.9 MB, free: 10.45 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.1465, allocations: 223.7 kB / 445.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.756e-05/0.1466, allocations: 51.27 kB / 445.1 MB, free: 10.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.23e-05/0.1466, allocations: 4 kB / 445.1 MB, free: 10.17 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.1468, allocations: 342.8 kB / 445.5 MB, free: 9.828 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.1469, allocations: 63.95 kB / 445.5 MB, free: 9.766 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001857/0.1471, allocations: 168.8 kB / 445.7 MB, free: 9.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000178/0.1473, allocations: 95.84 kB / 445.8 MB, free: 9.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.1473, allocations: 0 / 445.8 MB, free: 9.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004593/0.1478, allocations: 289.1 kB / 446.1 MB, free: 9.172 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.1478, allocations: 7.938 kB / 446.1 MB, free: 9.164 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.1478, allocations: 4 kB / 446.1 MB, free: 9.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.14e-05/0.1478, allocations: 4 kB / 446.1 MB, free: 9.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.1481, allocations: 63.89 kB / 446.1 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.974e-05/0.1481, allocations: 8 kB / 446.1 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.1483, allocations: 15.92 kB / 446.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.1484, allocations: 16 kB / 446.2 MB, free: 9.055 MB / 382.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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.1486, allocations: 169.8 kB / 446.3 MB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.1486, allocations: 27.67 kB / 446.4 MB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004167/0.149, allocations: 239.4 kB / 446.6 MB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.822e-06/0.1491, allocations: 4 kB / 446.6 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.1491, allocations: 0 / 446.6 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.247e-06/0.1491, allocations: 0 / 446.6 MB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007983/0.1499, allocations: 0.62 MB / 447.2 MB, free: 7.926 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1499, allocations: 4.031 kB / 447.2 MB, free: 7.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.1501, allocations: 43.92 kB / 447.3 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.1501, allocations: 0 / 447.3 MB, free: 7.879 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.684e-05/0.1501, allocations: 4 kB / 447.3 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.1502, allocations: 0 / 447.3 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1502, allocations: 0 / 447.3 MB, free: 7.875 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005176/0.1507, allocations: 429 kB / 447.7 MB, free: 7.434 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.613e-05/0.1508, allocations: 104.8 kB / 447.8 MB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.114e-05/0.1508, allocations: 4 kB / 447.8 MB, free: 7.309 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001515/0.151, allocations: 15.97 kB / 447.8 MB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.151, allocations: 15.92 kB / 447.8 MB, free: 7.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.151, allocations: 4 kB / 447.8 MB, free: 7.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.1512, allocations: 211 kB / 448 MB, free: 7.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1513, allocations: 0 / 448 MB, free: 7.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003364/0.1516, allocations: 60 kB / 448.1 MB, free: 7.012 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007602/0.1524, allocations: 0.9561 MB / 449.1 MB, free: 6.023 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.1527, allocations: 192.2 kB / 449.2 MB, free: 5.836 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.1527, allocations: 0 / 449.2 MB, free: 5.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.1528, allocations: 87.83 kB / 449.3 MB, free: 5.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005033/0.1534, allocations: 65.06 kB / 449.4 MB, free: 5.688 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002576/0.1559, allocations: 1.839 MB / 451.2 MB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.1563, allocations: 0.8106 MB / 452 MB, free: 2.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000198/0.1565, allocations: 54.94 kB / 452.1 MB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.1567, allocations: 107.4 kB / 452.2 MB, free: 2.75 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1567, allocations: 0 / 452.2 MB, free: 2.75 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2198/0.3766, allocations: 5.611 MB / 457.8 MB, free: 50.67 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001382/0.3768, allocations: 178.4 kB / 458 MB, free: 50.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/2.087, allocations: 0 / 458 MB, free: 50.44 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1) Environment - environmentSimulation: