Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001053/0.001053, allocations: 113.9 kB / 17.06 MB, free: 5.977 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.001103/0.001103, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.409/1.409, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1833/0.1833, allocations: 37.99 MB / 309.2 MB, free: 5.949 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.001613/0.001613, allocations: 71.91 kB / 431.4 MB, free: 16.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1128, allocations: 55.24 MB / 486.6 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.005873/0.1187, allocations: 4.339 MB / 491 MB, free: 4.457 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001748/0.1205, allocations: 0.971 MB / 491.9 MB, free: 3.48 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002948/0.1208, allocations: 15.88 kB / 491.9 MB, free: 3.465 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000276/0.1211, allocations: 55.5 kB / 492 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007821/0.122, allocations: 246.8 kB / 492.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.1223, allocations: 103.8 kB / 492.3 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006522/0.1229, allocations: 0.4906 MB / 492.8 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.1232, allocations: 147.6 kB / 493 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003891/0.1236, allocations: 235 kB / 493.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004381/0.124, allocations: 271.1 kB / 493.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.944e-05/0.1241, allocations: 27.98 kB / 493.5 MB, free: 1.91 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.544e-05/0.1242, allocations: 24 kB / 493.5 MB, free: 1.887 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001438/0.1243, allocations: 147.6 kB / 493.7 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.1245, allocations: 175.1 kB / 493.8 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003535/0.1249, allocations: 362.6 kB / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1249, allocations: 0 / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.115e-06/0.1249, allocations: 4 kB / 494.2 MB, free: 1.211 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1249, allocations: 0 / 494.2 MB, free: 1.211 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.00115/0.1261, allocations: 0.6594 MB / 494.8 MB, free: 0.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.1261, allocations: 11.89 kB / 494.9 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.331e-05/0.1262, allocations: 62.72 kB / 494.9 MB, free: 428 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.452e-05/0.1263, allocations: 40.47 kB / 495 MB, free: 388 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006369/0.1269, allocations: 383.7 kB / 495.3 MB, free: 15.97 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.105e-05/0.1269, allocations: 24.5 kB / 495.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.279e-05/0.127, allocations: 27.94 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.1275, allocations: 348.8 kB / 495.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1275, allocations: 3.938 kB / 495.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.824e-05/0.1276, allocations: 12 kB / 495.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000106/0.1277, allocations: 24.53 kB / 495.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003898/0.1281, allocations: 238 kB / 496 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00182/0.1299, allocations: 1.362 MB / 497.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004002/0.1303, allocations: 173 kB / 497.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001979/0.1305, allocations: 101.7 kB / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.1306, allocations: 7.922 kB / 497.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.1306, allocations: 38.56 kB / 497.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.565e-06/0.1306, allocations: 0 / 497.7 MB, free: 13.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001459/0.1321, allocations: 0.757 MB / 498.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.846e-05/0.1322, allocations: 85.05 kB / 498.5 MB, free: 12.55 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/0.1325, allocations: 304.4 kB / 498.8 MB, free: 12.24 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.1325, allocations: 29.7 kB / 498.8 MB, free: 12.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.1327, allocations: 211.6 kB / 499 MB, free: 11.99 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.021e-05/0.1328, allocations: 55.2 kB / 499.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.587e-05/0.1329, allocations: 49.61 kB / 499.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.133, allocations: 342.8 kB / 499.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.1331, allocations: 67.95 kB / 499.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.1333, allocations: 164.8 kB / 499.7 MB, free: 11.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003271/0.1337, allocations: 252.6 kB / 500 MB, free: 10.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1337, allocations: 0 / 500 MB, free: 10.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005914/0.1343, allocations: 317.7 kB / 0.4885 GB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1343, allocations: 8 kB / 0.4886 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.1343, allocations: 7.938 kB / 0.4886 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002235/0.1346, allocations: 53.27 kB / 0.4886 GB, free: 10.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.1348, allocations: 47.91 kB / 0.4887 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001425/0.1362, allocations: 1.613 MB / 0.4902 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001751/0.1364, allocations: 12 kB / 0.4902 GB, free: 8.766 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.1364, allocations: 8 kB / 0.4903 GB, free: 8.758 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002057/0.1366, allocations: 169.8 kB / 0.4904 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.542e-05/0.1367, allocations: 31.72 kB / 0.4904 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004518/0.1372, allocations: 240.2 kB / 0.4907 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1372, allocations: 0 / 0.4907 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1372, allocations: 4 kB / 0.4907 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1372, allocations: 3.984 kB / 0.4907 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009729/0.1382, allocations: 0.6445 MB / 0.4913 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1382, allocations: 0 / 0.4913 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.1383, allocations: 31.95 kB / 0.4913 GB, free: 7.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000196/0.1385, allocations: 64.78 kB / 0.4914 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.1386, allocations: 4 kB / 0.4914 GB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001386/0.1399, allocations: 1.605 MB / 0.493 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.14, allocations: 0 / 0.493 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005438/0.1405, allocations: 409.4 kB / 0.4934 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.1406, allocations: 104.8 kB / 0.4935 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.842e-05/0.1407, allocations: 8 kB / 0.4935 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.1408, allocations: 11.98 kB / 0.4935 GB, free: 5.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.82e-05/0.1409, allocations: 11.98 kB / 0.4935 GB, free: 5.168 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1409, allocations: 4 kB / 0.4935 GB, free: 5.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002215/0.1411, allocations: 211.1 kB / 0.4937 GB, free: 4.957 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1411, allocations: 0 / 0.4937 GB, free: 4.957 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.1415, allocations: 68 kB / 0.4938 GB, free: 4.891 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0008074/0.1423, allocations: 0.937 MB / 0.4947 GB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005957/0.1429, allocations: 310.3 kB / 0.495 GB, free: 3.602 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.143, allocations: 0.9375 kB / 0.495 GB, free: 3.602 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003447/0.1433, allocations: 214.6 kB / 0.4952 GB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.1438, allocations: 64.5 kB / 0.4952 GB, free: 3.316 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00379/0.1476, allocations: 3.051 MB / 0.4982 GB, free: 80 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/0.1481, allocations: 0.8065 MB / 0.499 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001655/0.1483, allocations: 46.94 kB / 0.4991 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001394/0.1484, allocations: 99.41 kB / 0.4991 GB, free: 15.1 MB / 398.1 MB Notification: Performance of SimCode: time 1.523e-06/0.1485, allocations: 0 / 0.4991 GB, free: 15.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03286/0.1813, allocations: 6.172 MB / 0.5052 GB, free: 8.875 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.596/9.777, allocations: 7.75 kB / 0.5052 GB, free: 8.867 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)