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.001118/0.001118, allocations: 107 kB / 17.06 MB, free: 6.094 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.0011/0.0011, allocations: 195 kB / 18 MB, free: 5.172 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.365/1.365, allocations: 205.1 MB / 223.9 MB, free: 12.21 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.98 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.00148/0.00148, allocations: 63.91 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09284/0.09433, allocations: 55.25 MB / 486.6 MB, free: 8.824 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.006418/0.1008, allocations: 4.335 MB / 491 MB, free: 4.461 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002397/0.1032, allocations: 0.9787 MB / 491.9 MB, free: 3.477 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003496/0.1036, allocations: 15.88 kB / 491.9 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.1039, allocations: 51.5 kB / 492 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.105, allocations: 246.8 kB / 492.2 MB, free: 3.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004114/0.1054, allocations: 103.8 kB / 492.3 MB, free: 3.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008392/0.1063, allocations: 0.4906 MB / 492.8 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003329/0.1066, allocations: 155.6 kB / 493 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005321/0.1072, allocations: 227.1 kB / 493.2 MB, free: 2.203 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006303/0.1078, allocations: 271.1 kB / 493.5 MB, free: 1.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.732e-05/0.1079, allocations: 24 kB / 493.5 MB, free: 1.914 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.108, allocations: 24 kB / 493.5 MB, free: 1.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001957/0.1082, allocations: 151.6 kB / 493.7 MB, free: 1.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003146/0.1085, allocations: 175.1 kB / 493.8 MB, free: 1.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00046/0.109, allocations: 362.7 kB / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.109, allocations: 0 / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.109, allocations: 0 / 494.2 MB, free: 1.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.109, allocations: 0 / 494.2 MB, free: 1.215 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.001321/0.1104, allocations: 0.6594 MB / 494.8 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.651e-05/0.1104, allocations: 15.89 kB / 494.9 MB, free: 500 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.74e-05/0.1105, allocations: 62.72 kB / 494.9 MB, free: 428 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.075e-05/0.1106, allocations: 36.47 kB / 495 MB, free: 392 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006296/0.1112, allocations: 379.8 kB / 495.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.1113, allocations: 32.42 kB / 495.4 MB, free: 15.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.1113, allocations: 24 kB / 495.4 MB, free: 15.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005408/0.1119, allocations: 352.7 kB / 495.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.1119, allocations: 4 kB / 495.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.762e-05/0.112, allocations: 8 kB / 495.7 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.1121, allocations: 28.53 kB / 495.8 MB, free: 15.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003988/0.1125, allocations: 242 kB / 496 MB, free: 15.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.1142, allocations: 1.363 MB / 497.4 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003582/0.1145, allocations: 169 kB / 497.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.1147, allocations: 97.67 kB / 497.6 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.1148, allocations: 8 kB / 497.6 MB, free: 13.53 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.1148, allocations: 30.56 kB / 497.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/0.1148, allocations: 0 / 497.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=15): time 0.001524/0.1164, allocations: 0.7646 MB / 498.4 MB, free: 12.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/0.1164, allocations: 77.11 kB / 498.5 MB, free: 12.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003491/0.1168, allocations: 300.4 kB / 498.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.1168, allocations: 33.69 kB / 498.8 MB, free: 12.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.117, allocations: 215.6 kB / 499 MB, free: 12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.26e-05/0.117, allocations: 59.14 kB / 499.1 MB, free: 11.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.1172, allocations: 53.61 kB / 499.2 MB, free: 11.88 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.1173, allocations: 342.9 kB / 499.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001478/0.1175, allocations: 67.95 kB / 499.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001735/0.1176, allocations: 160.8 kB / 499.7 MB, free: 11.27 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.118, allocations: 252.6 kB / 500 MB, free: 10.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.118, allocations: 4 kB / 500 MB, free: 10.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005338/0.1185, allocations: 317.7 kB / 0.4885 GB, free: 10.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.1186, allocations: 4 kB / 0.4886 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.1186, allocations: 4.438 kB / 0.4886 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.1188, allocations: 52.83 kB / 0.4886 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000188/0.119, allocations: 55.91 kB / 0.4887 GB, free: 10.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001323/0.1204, allocations: 1.605 MB / 0.4902 GB, free: 8.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.1205, allocations: 11.98 kB / 0.4902 GB, free: 8.773 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.1205, allocations: 12 kB / 0.4902 GB, free: 8.762 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.0001662/0.1207, allocations: 173.8 kB / 0.4904 GB, free: 8.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.172e-05/0.1208, allocations: 31.72 kB / 0.4904 GB, free: 8.551 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003826/0.1212, allocations: 240.2 kB / 0.4907 GB, free: 8.309 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.1212, allocations: 4 kB / 0.4907 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1212, allocations: 0 / 0.4907 GB, free: 8.305 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.1212, allocations: 3.984 kB / 0.4907 GB, free: 8.301 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008058/0.122, allocations: 0.6406 MB / 0.4913 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.122, allocations: 4 kB / 0.4913 GB, free: 7.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001044/0.1221, allocations: 27.95 kB / 0.4913 GB, free: 7.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001999/0.1223, allocations: 64.78 kB / 0.4914 GB, free: 7.5 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.732e-05/0.1224, allocations: 7.938 kB / 0.4914 GB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001245/0.1236, allocations: 1.601 MB / 0.493 GB, free: 5.75 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1236, allocations: 4.031 kB / 0.493 GB, free: 5.746 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004844/0.1241, allocations: 409.4 kB / 0.4934 GB, free: 5.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.548e-05/0.1242, allocations: 104.8 kB / 0.4935 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/0.1242, allocations: 4 kB / 0.4935 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.1244, allocations: 11.98 kB / 0.4935 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.09e-05/0.1244, allocations: 7.984 kB / 0.4935 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.105e-05/0.1244, allocations: 4 kB / 0.4935 GB, free: 5.172 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001884/0.1246, allocations: 215.1 kB / 0.4937 GB, free: 4.961 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1246, allocations: 0 / 0.4937 GB, free: 4.961 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003954/0.125, allocations: 68 kB / 0.4938 GB, free: 4.895 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.0007581/0.1258, allocations: 0.9409 MB / 0.4947 GB, free: 3.918 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005462/0.1264, allocations: 307.3 kB / 0.495 GB, free: 3.605 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.7e-06/0.1264, allocations: 0 / 0.495 GB, free: 3.605 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003312/0.1267, allocations: 218.5 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.0004997/0.1272, allocations: 64.56 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.003289/0.1305, 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.0003466/0.1309, allocations: 0.8065 MB / 0.499 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001363/0.131, 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.0001244/0.1312, allocations: 99.41 kB / 0.4991 GB, free: 15.1 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1312, allocations: 0 / 0.4991 GB, free: 15.1 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.1596, allocations: 6.16 MB / 0.5052 GB, free: 8.887 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.308/9.468, allocations: 11.81 kB / 0.5052 GB, free: 8.875 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)