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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001054/0.001054, allocations: 108.7 kB / 16.92 MB, free: 5.855 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.001213/0.001214, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 222.9 MB / 241.6 MB, free: 15.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1705/0.1705, allocations: 38.02 MB / 329.7 MB, free: 8.816 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 59.02 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09328/0.0945, allocations: 58.06 MB / 457 MB, free: 7.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.ImpedanceOneTerm): time 0.006047/0.1006, allocations: 4.057 MB / 461 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001434/0.1021, allocations: 0.9155 MB / 461.9 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.1023, allocations: 11.94 kB / 461.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001801/0.1025, allocations: 43.52 kB / 462 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000495/0.103, allocations: 182.9 kB / 462.2 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.1032, allocations: 87.83 kB / 462.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004445/0.1036, allocations: 398.6 kB / 462.6 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.1039, allocations: 122.2 kB / 462.8 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000283/0.1042, allocations: 183.2 kB / 462.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003081/0.1046, allocations: 187.3 kB / 463.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.1046, allocations: 16 kB / 463.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.278e-05/0.1047, allocations: 20 kB / 463.2 MB, free: 1.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.1048, allocations: 91.72 kB / 463.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.1049, allocations: 139.3 kB / 463.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002596/0.1052, allocations: 282.9 kB / 463.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.925e-06/0.1052, allocations: 0 / 463.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1052, allocations: 4 kB / 463.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1052, allocations: 0 / 463.7 MB, free: 1.238 MB / 334.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.0008372/0.1061, allocations: 0.5932 MB / 464.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.1061, allocations: 11.89 kB / 464.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.339e-05/0.1062, allocations: 54.73 kB / 464.3 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.494e-05/0.1062, allocations: 32.56 kB / 464.4 MB, free: 500 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003687/0.1066, allocations: 326.9 kB / 464.7 MB, free: 132 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.594e-05/0.1066, allocations: 20.38 kB / 464.7 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.515e-05/0.1067, allocations: 24 kB / 464.7 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003737/0.107, allocations: 282.9 kB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.919e-06/0.1071, allocations: 4 kB / 465 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.1071, allocations: 12 kB / 465 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.1071, allocations: 8 kB / 465 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002705/0.1074, allocations: 184.9 kB / 465.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.1086, allocations: 1.235 MB / 466.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002775/0.1089, allocations: 97.31 kB / 466.5 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.118e-05/0.109, allocations: 53.64 kB / 466.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.662e-05/0.109, allocations: 0 / 466.6 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.349e-05/0.1091, allocations: 38.56 kB / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.072e-06/0.1091, allocations: 0 / 466.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007896/0.1099, allocations: 493 kB / 467.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.1099, allocations: 89.11 kB / 467.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002277/0.1102, allocations: 250.6 kB / 467.4 MB, free: 13.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.847e-05/0.1102, allocations: 29.7 kB / 467.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.1103, allocations: 191.6 kB / 467.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.1104, allocations: 39.45 kB / 467.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.223e-05/0.1104, allocations: 45.61 kB / 467.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1106, allocations: 334.8 kB / 468.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.954e-05/0.1107, allocations: 31.98 kB / 468.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.1108, allocations: 128.9 kB / 468.2 MB, free: 12.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002244/0.111, allocations: 192.6 kB / 468.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.111, allocations: 0 / 468.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002943/0.1113, allocations: 201.1 kB / 468.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.1113, allocations: 8 kB / 468.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.1114, allocations: 4 kB / 468.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1114, allocations: 4 kB / 468.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.1115, allocations: 47.92 kB / 468.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1116, allocations: 8.375 kB / 468.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001293/0.1117, allocations: 27.77 kB / 468.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.449e-05/0.1117, allocations: 8 kB / 468.7 MB, free: 11.73 MB / 350.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.0001355/0.1119, allocations: 150.6 kB / 468.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.074e-05/0.1119, allocations: 15.81 kB / 468.9 MB, free: 11.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002146/0.1121, allocations: 139.2 kB / 469 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1121, allocations: 0 / 469 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.1121, allocations: 4.188 kB / 469 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.1122, allocations: 3.938 kB / 469 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005036/0.1127, allocations: 483.2 kB / 469.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1127, allocations: 4 kB / 469.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001218/0.1128, allocations: 23.98 kB / 469.5 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1128, allocations: 7.938 kB / 469.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.1128, allocations: 3.938 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1128, allocations: 0 / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1128, allocations: 4 kB / 469.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003028/0.1132, allocations: 284.9 kB / 469.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.1132, allocations: 92.86 kB / 469.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.1133, allocations: 7.938 kB / 469.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.926e-05/0.1134, allocations: 4 kB / 469.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.301e-05/0.1134, allocations: 11.92 kB / 469.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.206e-06/0.1134, allocations: 4 kB / 469.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001354/0.1136, allocations: 174 kB / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1136, allocations: 0 / 470.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003096/0.1139, allocations: 44 kB / 470.1 MB, free: 10.19 MB / 350.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.0005761/0.1145, allocations: 0.8226 MB / 471 MB, free: 9.34 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002229/0.1147, allocations: 111.8 kB / 471.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1147, allocations: 0 / 471.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.399e-05/0.1148, allocations: 47.92 kB / 471.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004528/0.1152, allocations: 59.16 kB / 471.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002621/0.1179, allocations: 2.463 MB / 473.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.1183, allocations: 0.7713 MB / 474.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001305/0.1184, allocations: 34.27 kB / 474.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001068/0.1185, allocations: 83.41 kB / 474.5 MB, free: 5.574 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1185, allocations: 4 kB / 474.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03112/0.1497, allocations: 4.509 MB / 479 MB, free: 1.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.092/7.242, allocations: 11.98 kB / 479 MB, free: 1.145 MB / 350.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)