Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.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.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",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.001098/0.001098, allocations: 106.1 kB / 17.06 MB, free: 6.027 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.001138/0.001138, allocations: 195 kB / 18 MB, free: 5.105 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.461/1.461, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1734/0.1734, allocations: 37.99 MB / 309.2 MB, free: 5.961 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.001325/0.001325, allocations: 71.89 kB / 431.4 MB, free: 16.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09182/0.09316, allocations: 55.24 MB / 486.6 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.006051/0.09925, allocations: 4.081 MB / 490.7 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001578/0.1009, allocations: 0.9046 MB / 491.6 MB, free: 3.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.1011, allocations: 11.94 kB / 491.6 MB, free: 3.82 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002213/0.1014, allocations: 39.58 kB / 491.6 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005651/0.102, allocations: 167 kB / 491.8 MB, free: 3.617 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.1022, allocations: 87.81 kB / 491.9 MB, free: 3.531 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000579/0.1028, allocations: 402.6 kB / 492.3 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002445/0.1031, allocations: 115.1 kB / 492.4 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004043/0.1035, allocations: 175.3 kB / 492.6 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005432/0.1041, allocations: 187.2 kB / 492.7 MB, free: 2.672 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.33e-05/0.1041, allocations: 20 kB / 492.8 MB, free: 2.652 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.022e-05/0.1042, allocations: 20 kB / 492.8 MB, free: 2.633 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001404/0.1044, allocations: 91.72 kB / 492.9 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002522/0.1047, allocations: 139.3 kB / 493 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004107/0.1051, allocations: 290.9 kB / 493.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.1051, allocations: 0 / 493.3 MB, free: 2.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1051, allocations: 3.938 kB / 493.3 MB, free: 2.117 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.624e-05/0.1051, allocations: 0 / 493.3 MB, free: 2.117 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.001174/0.1063, allocations: 0.5932 MB / 493.9 MB, free: 1.477 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.1063, allocations: 11.89 kB / 493.9 MB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.882e-05/0.1064, allocations: 54.73 kB / 494 MB, free: 1.402 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.857e-05/0.1065, allocations: 32.56 kB / 494 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.1071, allocations: 343 kB / 494.3 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1071, allocations: 12.81 kB / 494.3 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001297/0.1072, allocations: 39.84 kB / 494.4 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004179/0.1077, allocations: 294 kB / 494.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1077, allocations: 0 / 494.7 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.217e-05/0.1077, allocations: 8 kB / 494.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.1077, allocations: 4 kB / 494.7 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.108, allocations: 187.8 kB / 494.9 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001568/0.1096, allocations: 1.276 MB / 496.1 MB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002918/0.1099, allocations: 119.8 kB / 496.3 MB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.781e-05/0.11, allocations: 46.62 kB / 496.3 MB, free: 14.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.11, allocations: 11.84 kB / 496.3 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.1101, allocations: 30.56 kB / 496.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.462e-06/0.1101, allocations: 0 / 496.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=11): time 0.0008943/0.111, allocations: 0.5388 MB / 496.9 MB, free: 14.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.111, allocations: 106.8 kB / 497 MB, free: 14.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.1112, allocations: 246.6 kB / 497.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.419e-05/0.1113, allocations: 29.7 kB / 497.3 MB, free: 13.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.1114, allocations: 191.6 kB / 497.4 MB, free: 13.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.1114, allocations: 43.44 kB / 497.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.421e-05/0.1115, allocations: 41.7 kB / 497.5 MB, free: 13.52 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1116, allocations: 342.9 kB / 497.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.443e-05/0.1117, allocations: 39.84 kB / 497.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1118, allocations: 131.9 kB / 498 MB, free: 12.97 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.1121, allocations: 191.8 kB / 498.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1121, allocations: 0 / 498.2 MB, free: 12.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004046/0.1125, allocations: 237.8 kB / 498.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.1125, allocations: 4 kB / 498.4 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.764e-06/0.1125, allocations: 4 kB / 498.5 MB, free: 12.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001206/0.1127, allocations: 32.78 kB / 498.5 MB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.113, allocations: 64.28 kB / 498.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.113, allocations: 8 kB / 498.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001225/0.1131, allocations: 8 kB / 498.6 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/0.1132, allocations: 8 kB / 498.6 MB, free: 12.37 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001289/0.1133, allocations: 153.7 kB / 498.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.1134, allocations: 19.72 kB / 498.7 MB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002561/0.1136, allocations: 147.3 kB / 498.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1136, allocations: 3.938 kB / 498.9 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1136, allocations: 11.94 kB / 498.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1137, allocations: 0 / 498.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003502/0.114, allocations: 281.5 kB / 499.2 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/0.114, allocations: 4 kB / 499.2 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.1142, allocations: 31.97 kB / 499.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1142, allocations: 0 / 499.2 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.607e-05/0.1142, allocations: 8 kB / 499.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.1142, allocations: 3.938 kB / 499.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.1142, allocations: 0.5469 kB / 499.2 MB, free: 11.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003672/0.1146, allocations: 363.7 kB / 499.6 MB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.584e-05/0.1147, allocations: 92.95 kB / 499.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.427e-05/0.1147, allocations: 11.92 kB / 499.7 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001566/0.1149, allocations: 7.938 kB / 499.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.39e-05/0.1149, allocations: 8 kB / 499.7 MB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.1149, allocations: 7.984 kB / 499.7 MB, free: 11.13 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000145/0.1151, allocations: 174 kB / 499.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1151, allocations: 96 / 499.9 MB, free: 10.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003517/0.1155, allocations: 47.94 kB / 499.9 MB, free: 10.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * 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 (14): * Single equations (assignments): 13 * 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.0005998/0.1161, allocations: 0.9076 MB / 0.4891 GB, free: 9.977 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003273/0.1164, allocations: 209.7 kB / 0.4893 GB, free: 9.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.1164, allocations: 0 / 0.4893 GB, free: 9.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.163e-05/0.1165, allocations: 51.86 kB / 0.4893 GB, free: 9.699 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005161/0.117, allocations: 65.36 kB / 0.4894 GB, free: 9.637 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002836/0.1199, allocations: 2.614 MB / 0.492 GB, free: 6.844 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.1202, allocations: 0.7675 MB / 0.4927 GB, free: 6.051 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.1203, allocations: 34.28 kB / 0.4927 GB, free: 6.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.1205, allocations: 87.41 kB / 0.4928 GB, free: 5.934 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1205, allocations: 0 / 0.4928 GB, free: 5.934 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02567/0.1462, allocations: 4.937 MB / 0.4976 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.449/9.595, allocations: 7.984 kB / 0.4976 GB, free: 0.9336 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)