Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.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.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm",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: 101.6 kB / 17.05 MB, free: 6.129 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.001096/0.001096, allocations: 195 kB / 18 MB, free: 5.203 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.28/1.28, 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.176/0.176, 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.001407/0.001407, allocations: 67.89 kB / 431.4 MB, free: 16.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.0989, allocations: 55.24 MB / 486.6 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.005211/0.1041, allocations: 4.062 MB / 490.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001592/0.1058, allocations: 0.9515 MB / 491.6 MB, free: 3.785 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.106, allocations: 11.94 kB / 491.6 MB, free: 3.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002085/0.1063, allocations: 51.5 kB / 491.7 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005432/0.1068, allocations: 183 kB / 491.9 MB, free: 3.543 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.1071, allocations: 91.81 kB / 492 MB, free: 3.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000453/0.1075, allocations: 398.5 kB / 492.3 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002313/0.1078, allocations: 126.4 kB / 492.5 MB, free: 2.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.1081, allocations: 175.2 kB / 492.6 MB, free: 2.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000411/0.1085, allocations: 191.2 kB / 492.8 MB, free: 2.582 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.134e-05/0.1086, allocations: 20 kB / 492.8 MB, free: 2.562 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.577e-05/0.1086, allocations: 20 kB / 492.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.1087, allocations: 91.77 kB / 493 MB, free: 2.453 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001773/0.1089, allocations: 139.2 kB / 493.1 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003466/0.1093, allocations: 282.9 kB / 493.4 MB, free: 2.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.1093, allocations: 4 kB / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1093, allocations: 0 / 493.4 MB, free: 2.035 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.265e-05/0.1093, allocations: 0 / 493.4 MB, free: 2.035 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001102/0.1104, allocations: 0.5971 MB / 494 MB, free: 1.391 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1105, allocations: 11.89 kB / 494 MB, free: 1.379 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.655e-05/0.1106, allocations: 62.67 kB / 494 MB, free: 1.309 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.207e-05/0.1106, allocations: 32.56 kB / 494.1 MB, free: 1.277 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/0.1111, allocations: 339 kB / 494.4 MB, free: 0.9102 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.022e-05/0.1112, allocations: 20.38 kB / 494.4 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.1112, allocations: 24 kB / 494.4 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.1117, allocations: 286.8 kB / 494.7 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1117, allocations: 4 kB / 494.7 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.464e-05/0.1117, allocations: 8 kB / 494.7 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.527e-06/0.1117, allocations: 8 kB / 494.7 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000292/0.112, allocations: 180.9 kB / 494.9 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001363/0.1134, allocations: 1.22 MB / 496.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002868/0.1137, allocations: 109.2 kB / 496.3 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.98e-05/0.1138, allocations: 45.7 kB / 496.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.71e-05/0.1138, allocations: 11.97 kB / 496.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.1138, allocations: 34.56 kB / 496.3 MB, free: 14.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.302e-06/0.1138, allocations: 3.938 kB / 496.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008121/0.1147, allocations: 492.4 kB / 496.8 MB, free: 14.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.1147, allocations: 77.11 kB / 496.9 MB, free: 14.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/0.115, allocations: 250.6 kB / 497.1 MB, free: 13.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.115, allocations: 33.69 kB / 497.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001312/0.1151, allocations: 191.6 kB / 497.4 MB, free: 13.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.1152, allocations: 43.39 kB / 497.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.1153, allocations: 45.61 kB / 497.5 MB, free: 13.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1154, allocations: 338.8 kB / 497.8 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.079e-05/0.1155, allocations: 35.98 kB / 497.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.1156, allocations: 132.7 kB / 497.9 MB, free: 13.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002219/0.1158, allocations: 184.7 kB / 498.1 MB, free: 12.83 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.1159, allocations: 4.75 kB / 498.1 MB, free: 12.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003092/0.1162, allocations: 205.1 kB / 498.3 MB, free: 12.62 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1162, allocations: 8.094 kB / 498.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.1162, allocations: 7.922 kB / 498.3 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.1162, allocations: 8 kB / 498.4 MB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1164, allocations: 40.36 kB / 498.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.1164, allocations: 8 kB / 498.4 MB, free: 12.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000116/0.1165, allocations: 15.84 kB / 498.4 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.1166, allocations: 16 kB / 498.4 MB, free: 12.52 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 (24): * Single equations (assignments): 24 * 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.0001288/0.1167, allocations: 149.8 kB / 498.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.1168, allocations: 19.81 kB / 498.6 MB, free: 12.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000218/0.117, allocations: 139.1 kB / 498.7 MB, free: 12.2 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.117, allocations: 4 kB / 498.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.117, allocations: 0 / 498.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.117, allocations: 7.938 kB / 498.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005286/0.1175, allocations: 487.2 kB / 499.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1176, allocations: 3.938 kB / 499.2 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.1177, allocations: 23.98 kB / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1177, allocations: 0 / 499.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.641e-05/0.1177, allocations: 11.94 kB / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1177, allocations: 0 / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1177, allocations: 0 / 499.3 MB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003231/0.1181, allocations: 276.9 kB / 499.5 MB, free: 11.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.571e-05/0.1181, allocations: 104.8 kB / 499.6 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.113e-05/0.1182, allocations: 3.938 kB / 499.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1183, allocations: 4 kB / 499.6 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.571e-05/0.1183, allocations: 8 kB / 499.7 MB, free: 11.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.1183, allocations: 8.047 kB / 499.7 MB, free: 11.17 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.1185, allocations: 174 kB / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1185, allocations: 0 / 499.8 MB, free: 11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003209/0.1188, allocations: 44 kB / 499.9 MB, free: 10.96 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (ind.i) * 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 (13): * Single equations (assignments): 12 * 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.0005919/0.1194, allocations: 0.8154 MB / 0.489 GB, free: 10.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002558/0.1197, allocations: 107.8 kB / 0.4891 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.1197, allocations: 0 / 0.4891 GB, free: 10.01 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.472e-05/0.1198, allocations: 47.91 kB / 0.4891 GB, free: 9.961 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004892/0.1203, allocations: 73.5 kB / 0.4892 GB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002751/0.123, allocations: 2.439 MB / 0.4916 GB, free: 7.277 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.1234, allocations: 0.779 MB / 0.4923 GB, free: 6.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001118/0.1236, allocations: 34.27 kB / 0.4923 GB, free: 6.438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000108/0.1237, allocations: 79.41 kB / 0.4924 GB, free: 6.359 MB / 382.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1237, allocations: 0 / 0.4924 GB, free: 6.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.1476, allocations: 4.646 MB / 0.497 GB, free: 1.656 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.367/7.514, allocations: 19.75 kB / 0.497 GB, free: 1.637 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_ImpedanceOneTerm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm.pipe 2>&1)