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.001066/0.001066, allocations: 106.5 kB / 17.06 MB, free: 6.016 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.001144/0.001144, allocations: 195 kB / 18 MB, free: 5.094 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.323/1.323, allocations: 205.1 MB / 223.9 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1855/0.1855, allocations: 37.98 MB / 309.2 MB, free: 5.957 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.001623/0.001623, allocations: 59.91 kB / 431.4 MB, free: 16.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1055, allocations: 55.24 MB / 486.6 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.006163/0.1117, allocations: 4.206 MB / 490.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.1138, allocations: 0.9831 MB / 491.8 MB, free: 3.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003345/0.1142, allocations: 11.94 kB / 491.8 MB, free: 3.719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000266/0.1145, allocations: 51.5 kB / 491.9 MB, free: 3.668 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007777/0.1153, allocations: 198.9 kB / 492.1 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.1156, allocations: 95.81 kB / 492.1 MB, free: 3.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000653/0.1163, allocations: 478.3 kB / 492.6 MB, free: 2.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003061/0.1166, allocations: 159.5 kB / 492.8 MB, free: 2.758 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004828/0.1171, allocations: 219.1 kB / 493 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006122/0.1177, allocations: 247.1 kB / 493.2 MB, free: 2.301 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.477e-05/0.1178, allocations: 28 kB / 493.3 MB, free: 2.273 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.683e-05/0.1179, allocations: 28 kB / 493.3 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.1181, allocations: 119.7 kB / 493.4 MB, free: 2.129 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000247/0.1183, allocations: 179.1 kB / 493.6 MB, free: 1.953 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000504/0.1188, allocations: 382.6 kB / 493.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1188, allocations: 0 / 493.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.1188, allocations: 0 / 493.9 MB, free: 1.578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.644e-05/0.1189, allocations: 0 / 493.9 MB, free: 1.578 MB / 366.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.001821/0.1207, allocations: 0.6945 MB / 494.6 MB, free: 0.832 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7e-05/0.1208, allocations: 15.89 kB / 494.7 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.819e-05/0.1209, allocations: 58.73 kB / 494.7 MB, free: 0.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.121, allocations: 44.41 kB / 494.8 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.1218, allocations: 398.9 kB / 495.1 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.1218, allocations: 20.56 kB / 495.2 MB, free: 268 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.1219, allocations: 24 kB / 495.2 MB, free: 244 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005637/0.1225, allocations: 360.7 kB / 495.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.1225, allocations: 3.984 kB / 495.5 MB, free: 15.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.237e-05/0.1225, allocations: 12 kB / 495.6 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.141e-05/0.1226, allocations: 8 kB / 495.6 MB, free: 15.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004215/0.123, allocations: 254 kB / 495.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001998/0.125, allocations: 1.454 MB / 497.3 MB, free: 14.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002911/0.1253, allocations: 157 kB / 497.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.1254, allocations: 85.73 kB / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.468e-05/0.1255, allocations: 3.938 kB / 497.5 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.1255, allocations: 42.44 kB / 497.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1255, allocations: 0 / 497.6 MB, free: 13.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001283/0.1268, allocations: 0.68 MB / 498.2 MB, free: 12.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.975e-05/0.1269, allocations: 77.11 kB / 498.3 MB, free: 12.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003191/0.1272, allocations: 296.6 kB / 498.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.1273, allocations: 25.7 kB / 498.6 MB, free: 12.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.1274, allocations: 223.5 kB / 498.8 MB, free: 12.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.392e-05/0.1275, allocations: 59.19 kB / 498.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.849e-05/0.1276, allocations: 49.61 kB / 498.9 MB, free: 12.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1277, allocations: 338.8 kB / 499.3 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.1278, allocations: 75.91 kB / 499.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001719/0.128, allocations: 156.8 kB / 499.5 MB, free: 11.61 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.1283, allocations: 256.6 kB / 499.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1283, allocations: 0 / 499.8 MB, free: 11.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004523/0.1288, allocations: 288.9 kB / 0.4883 GB, free: 11.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.1288, allocations: 8 kB / 0.4883 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1288, allocations: 4 kB / 0.4883 GB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.914e-05/0.1289, allocations: 4 kB / 0.4883 GB, free: 11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002653/0.1291, allocations: 63.84 kB / 0.4884 GB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.1291, allocations: 8.375 kB / 0.4884 GB, free: 10.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000167/0.1293, allocations: 19.98 kB / 0.4884 GB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.1294, allocations: 8 kB / 0.4884 GB, free: 10.91 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001773/0.1295, allocations: 169.7 kB / 0.4886 GB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.882e-05/0.1296, allocations: 31.56 kB / 0.4886 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003945/0.13, allocations: 239.4 kB / 0.4888 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.13, allocations: 4 kB / 0.4889 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.13, allocations: 4 kB / 0.4889 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.427e-06/0.13, allocations: 0 / 0.4889 GB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008358/0.1309, allocations: 0.6278 MB / 0.4895 GB, free: 9.762 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.1309, allocations: 4 kB / 0.4895 GB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002021/0.1311, allocations: 39.91 kB / 0.4895 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.1311, allocations: 0 / 0.4895 GB, free: 9.719 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/0.1311, allocations: 8 kB / 0.4895 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.165e-06/0.1312, allocations: 0 / 0.4895 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1312, allocations: 0 / 0.4895 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005826/0.1317, allocations: 428.6 kB / 0.4899 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.1319, allocations: 104.8 kB / 0.49 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.529e-05/0.1319, allocations: 7.984 kB / 0.49 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1321, allocations: 8 kB / 0.49 GB, free: 9.133 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.885e-05/0.1322, allocations: 7.984 kB / 0.49 GB, free: 9.125 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.139e-05/0.1322, allocations: 15.94 kB / 0.4901 GB, free: 9.109 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.1324, allocations: 215 kB / 0.4903 GB, free: 8.902 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1324, allocations: 0 / 0.4903 GB, free: 8.902 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.1328, allocations: 60 kB / 0.4903 GB, free: 8.844 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008746/0.1337, allocations: 0.9482 MB / 0.4913 GB, free: 7.863 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.134, allocations: 191.9 kB / 0.4914 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.134, allocations: 0 / 0.4914 GB, free: 7.676 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.1342, allocations: 87.89 kB / 0.4915 GB, free: 7.59 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005453/0.1347, allocations: 78.33 kB / 0.4916 GB, free: 7.512 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.1383, allocations: 2.902 MB / 0.4944 GB, free: 4.434 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005831/0.1389, allocations: 0.8065 MB / 0.4952 GB, free: 3.598 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002017/0.1391, allocations: 50.94 kB / 0.4953 GB, free: 3.547 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001823/0.1393, allocations: 111.3 kB / 0.4954 GB, free: 3.438 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1393, allocations: 0 / 0.4954 GB, free: 3.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.1668, allocations: 6.099 MB / 0.5013 GB, free: 13.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.78/7.946, allocations: 8.047 kB / 0.5013 GB, free: 13.28 MB / 398.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/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)