Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.001594/0.001595, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001755/0.001755, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.32/1.32, allocations: 222.9 MB / 241.6 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1729/0.1729, allocations: 38.02 MB / 329.7 MB, free: 8.812 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 66.3 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1023, allocations: 58.06 MB / 457 MB, free: 7.961 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005759/0.108, allocations: 4.19 MB / 461.2 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001572/0.1096, allocations: 0.9471 MB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002525/0.1099, allocations: 7.938 kB / 462.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002378/0.1102, allocations: 55.5 kB / 462.2 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006918/0.1109, allocations: 198.9 kB / 462.4 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003114/0.1112, allocations: 99.86 kB / 462.5 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007259/0.112, allocations: 486.3 kB / 462.9 MB, free: 1.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003074/0.1123, allocations: 139.6 kB / 463.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004433/0.1127, allocations: 207.2 kB / 463.3 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005569/0.1133, allocations: 247.1 kB / 463.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.1134, allocations: 24 kB / 463.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000116/0.1135, allocations: 32 kB / 463.6 MB, free: 1.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.1137, allocations: 131.6 kB / 463.7 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003045/0.114, allocations: 167.1 kB / 463.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005196/0.1146, allocations: 374.7 kB / 464.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1146, allocations: 7.938 kB / 464.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1146, allocations: 0 / 464.2 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.818e-05/0.1146, allocations: 0 / 464.2 MB, free: 0.6562 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.00141/0.116, allocations: 0.6947 MB / 464.9 MB, free: 15.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.1161, allocations: 11.89 kB / 464.9 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.949e-05/0.1161, allocations: 62.73 kB / 465 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.347e-05/0.1162, allocations: 40.45 kB / 465 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006099/0.1168, allocations: 386.9 kB / 465.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.467e-05/0.1169, allocations: 20.56 kB / 465.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.963e-05/0.1169, allocations: 28 kB / 465.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.1175, allocations: 360.6 kB / 465.8 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.1175, allocations: 4 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.089e-05/0.1176, allocations: 8 kB / 465.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.1176, allocations: 12 kB / 465.8 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.118, allocations: 254 kB / 466.1 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001885/0.1199, allocations: 1.45 MB / 467.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002745/0.1202, allocations: 166.9 kB / 467.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.1204, allocations: 81.73 kB / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.1204, allocations: 0 / 467.8 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.1204, allocations: 38.48 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.683e-06/0.1204, allocations: 4 kB / 467.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001228/0.1217, allocations: 0.6721 MB / 468.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.1217, allocations: 81.11 kB / 468.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003142/0.1221, allocations: 300.5 kB / 468.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.1221, allocations: 29.7 kB / 468.9 MB, free: 11.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001574/0.1223, allocations: 219.5 kB / 469.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.924e-05/0.1223, allocations: 55.2 kB / 469.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.5e-05/0.1224, allocations: 53.61 kB / 469.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.1226, allocations: 342.8 kB / 469.6 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/0.1227, allocations: 67.95 kB / 469.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.1229, allocations: 169.3 kB / 469.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.1232, allocations: 263.9 kB / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1232, allocations: 0 / 470 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004329/0.1237, allocations: 288.9 kB / 470.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1237, allocations: 8 kB / 470.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.1237, allocations: 4 kB / 470.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.67e-05/0.1237, allocations: 4 kB / 470.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002429/0.124, allocations: 56.34 kB / 470.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.237e-05/0.124, allocations: 15.92 kB / 470.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001637/0.1242, allocations: 12 kB / 470.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.932e-05/0.1242, allocations: 15.98 kB / 470.4 MB, free: 9.996 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 (29): * Single equations (assignments): 29 * 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.0001582/0.1244, allocations: 165.8 kB / 470.6 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.493e-05/0.1244, allocations: 31.56 kB / 470.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003676/0.1248, allocations: 230 kB / 470.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.1248, allocations: 4 kB / 470.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.1248, allocations: 4 kB / 470.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1248, allocations: 3.984 kB / 470.9 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007567/0.1256, allocations: 0.6162 MB / 471.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.1256, allocations: 7.984 kB / 471.5 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.1258, allocations: 35.92 kB / 471.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1258, allocations: 3.938 kB / 471.5 MB, free: 8.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.1258, allocations: 4 kB / 471.5 MB, free: 8.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.1259, allocations: 3.938 kB / 471.5 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.1259, allocations: 4.031 kB / 471.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005415/0.1264, allocations: 429.4 kB / 472 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.909e-05/0.1265, allocations: 112.7 kB / 472.1 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.028e-05/0.1266, allocations: 4 kB / 472.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.1267, allocations: 11.98 kB / 472.1 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.304e-05/0.1268, allocations: 15.95 kB / 472.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.1268, allocations: 11.94 kB / 472.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002051/0.127, allocations: 207.1 kB / 472.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.127, allocations: 0 / 472.3 MB, free: 8.008 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003312/0.1273, allocations: 60 kB / 472.4 MB, free: 7.949 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.000807/0.1282, allocations: 0.952 MB / 473.3 MB, free: 6.965 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003586/0.1285, allocations: 202.7 kB / 473.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1285, allocations: 0 / 473.5 MB, free: 6.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001968/0.1287, allocations: 92.77 kB / 473.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005069/0.1293, allocations: 77.78 kB / 473.7 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003441/0.1327, allocations: 2.886 MB / 476.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003789/0.1331, allocations: 0.8102 MB / 477.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000186/0.1333, allocations: 54.94 kB / 477.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.1335, allocations: 111.4 kB / 477.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1335, allocations: 0 / 477.5 MB, free: 2.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0271/0.1606, allocations: 5.897 MB / 483.4 MB, free: 12.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.32, allocations: 3.984 kB / 483.4 MB, free: 12.72 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)