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.001151/0.001151, allocations: 107 kB / 16.62 MB, free: 6.809 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.001155/0.001155, allocations: 193.8 kB / 17.55 MB, free: 5.953 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.329/1.329, allocations: 222.9 MB / 241.2 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1669/0.1669, allocations: 38.02 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 58.16 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1069, allocations: 58.07 MB / 456.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.005929/0.1128, allocations: 4.846 MB / 461.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.1145, allocations: 1.13 MB / 462.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.1147, allocations: 27.81 kB / 462.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001937/0.1149, allocations: 39.69 kB / 462.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004724/0.1154, allocations: 183.1 kB / 462.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.1156, allocations: 83.91 kB / 462.7 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004611/0.1161, allocations: 486.3 kB / 463.2 MB, free: 1.488 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002458/0.1164, allocations: 151.5 kB / 463.4 MB, free: 1.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002558/0.1166, allocations: 199.1 kB / 463.6 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003644/0.117, allocations: 259.1 kB / 463.8 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.625e-05/0.117, allocations: 24 kB / 463.8 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.635e-05/0.1171, allocations: 31.94 kB / 463.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001265/0.1172, allocations: 119.7 kB / 464 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001724/0.1174, allocations: 183 kB / 464.2 MB, free: 0.5391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.1178, allocations: 378.7 kB / 464.5 MB, free: 172 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1178, allocations: 0 / 464.5 MB, free: 172 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1178, allocations: 0 / 464.5 MB, free: 172 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.1178, allocations: 0 / 464.5 MB, free: 172 kB / 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.001274/0.1191, allocations: 0.6945 MB / 465.2 MB, free: 15.42 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.1191, allocations: 11.89 kB / 465.2 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.453e-05/0.1192, allocations: 62.73 kB / 465.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.699e-05/0.1193, allocations: 36.47 kB / 465.3 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000542/0.1198, allocations: 382.9 kB / 465.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.1199, allocations: 20.56 kB / 465.7 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.943e-05/0.1199, allocations: 27.98 kB / 465.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.1204, allocations: 360.7 kB / 466.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.1204, allocations: 4 kB / 466.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.529e-05/0.1205, allocations: 8 kB / 466.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.1205, allocations: 8 kB / 466.1 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.1208, allocations: 254 kB / 466.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.1224, allocations: 1.454 MB / 467.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002302/0.1227, allocations: 153 kB / 468 MB, free: 12.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001145/0.1228, allocations: 85.72 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1228, allocations: 8 kB / 468.1 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.715e-05/0.1228, allocations: 38.5 kB / 468.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.1229, allocations: 0 / 468.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001035/0.1239, allocations: 0.6727 MB / 468.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.124, allocations: 88.92 kB / 468.9 MB, free: 11.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002696/0.1242, allocations: 312.5 kB / 469.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.1243, allocations: 29.7 kB / 469.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.1244, allocations: 211.6 kB / 469.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.182e-05/0.1244, allocations: 55.25 kB / 469.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.852e-05/0.1245, allocations: 49.61 kB / 469.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1246, allocations: 338.8 kB / 469.8 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001042/0.1247, allocations: 71.94 kB / 469.9 MB, free: 10.42 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001534/0.1249, allocations: 168.8 kB / 470.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002796/0.1252, allocations: 260.6 kB / 470.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.1252, allocations: 0 / 470.3 MB, free: 9.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003665/0.1256, allocations: 288.7 kB / 470.6 MB, free: 9.625 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/0.1256, allocations: 10.19 kB / 470.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/0.1256, allocations: 4 kB / 470.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.1256, allocations: 4 kB / 470.6 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002337/0.1259, allocations: 55.91 kB / 470.7 MB, free: 9.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.1259, allocations: 4 kB / 470.7 MB, free: 9.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.126, allocations: 23.92 kB / 470.7 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.867e-05/0.1261, allocations: 12.31 kB / 470.7 MB, free: 9.516 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.0001525/0.1262, allocations: 169.8 kB / 470.9 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.186e-05/0.1263, allocations: 35.55 kB / 470.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003541/0.1266, allocations: 231.5 kB / 471.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.1266, allocations: 4 kB / 471.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1267, allocations: 0 / 471.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1267, allocations: 0 / 471.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000661/0.1273, allocations: 0.6201 MB / 471.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1273, allocations: 4 kB / 471.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.1275, allocations: 39.97 kB / 471.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1276, allocations: 0 / 471.8 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.1276, allocations: 4 kB / 471.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1276, allocations: 3.984 kB / 471.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1276, allocations: 0 / 471.8 MB, free: 8.336 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004765/0.1281, allocations: 432.6 kB / 472.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.035e-05/0.1281, allocations: 112.7 kB / 472.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.743e-05/0.1282, allocations: 4 kB / 472.4 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.1283, allocations: 8 kB / 472.4 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.1284, allocations: 11.92 kB / 472.4 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.1284, allocations: 19.92 kB / 472.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000172/0.1286, allocations: 203.1 kB / 472.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1286, allocations: 0 / 472.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003072/0.1289, allocations: 68.06 kB / 472.7 MB, free: 7.453 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.0006809/0.1296, allocations: 0.9508 MB / 473.6 MB, free: 6.473 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.1299, allocations: 211.7 kB / 473.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1299, allocations: 0 / 473.8 MB, free: 6.266 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001219/0.1301, allocations: 94.39 kB / 473.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005028/0.1306, allocations: 68.92 kB / 474 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.1335, allocations: 3.012 MB / 477 MB, free: 2.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003328/0.1338, allocations: 0.8102 MB / 477.8 MB, free: 2.082 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001773/0.134, allocations: 50.94 kB / 477.9 MB, free: 2.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.1342, allocations: 107.4 kB / 478 MB, free: 1.926 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1342, allocations: 0 / 478 MB, free: 1.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.055/1.189, allocations: 5.821 MB / 483.8 MB, free: 12.23 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002512/1.19, allocations: 194.3 kB / 484 MB, free: 11.98 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.639/2.829, allocations: 0 / 484 MB, free: 11.98 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)