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.001119/0.001119, allocations: 110.1 kB / 17.06 MB, free: 5.82 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.001131/0.001131, allocations: 195.9 kB / 18 MB, free: 4.965 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.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1859/0.1859, allocations: 38.04 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 59.91 kB / 457.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3566, allocations: 58.05 MB / 0.5036 GB, free: 7.375 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.006275/0.3629, allocations: 4.201 MB / 0.5077 GB, free: 4.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001837/0.3648, allocations: 0.9446 MB / 0.5086 GB, free: 3.789 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002387/0.365, allocations: 11.44 kB / 0.5086 GB, free: 3.785 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001599/0.3652, allocations: 56.16 kB / 0.5087 GB, free: 3.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004554/0.3657, allocations: 198.3 kB / 0.5089 GB, free: 3.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.366, allocations: 98.41 kB / 0.509 GB, free: 3.586 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000478/0.3665, allocations: 483.6 kB / 0.5094 GB, free: 3.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002428/0.3667, allocations: 150.5 kB / 0.5096 GB, free: 3.324 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.367, allocations: 201.3 kB / 0.5098 GB, free: 3.238 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003739/0.3674, allocations: 250.2 kB / 0.51 GB, free: 3.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.289e-05/0.3674, allocations: 31.56 kB / 0.5101 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.955e-05/0.3675, allocations: 26.75 kB / 0.5101 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001466/0.3677, allocations: 121 kB / 0.5102 GB, free: 3.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001757/0.3678, allocations: 175.6 kB / 0.5104 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004296/0.3683, allocations: 384.5 kB / 0.5107 GB, free: 2.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3683, allocations: 1.125 kB / 0.5107 GB, free: 2.832 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3683, allocations: 0.7031 kB / 0.5107 GB, free: 2.832 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3683, allocations: 0 / 0.5107 GB, free: 2.832 MB / 382.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.001225/0.3695, allocations: 0.7092 MB / 0.5114 GB, free: 2.289 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.3696, allocations: 14.27 kB / 0.5114 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.245e-05/0.3696, allocations: 62.42 kB / 0.5115 GB, free: 2.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.972e-05/0.3697, allocations: 38.86 kB / 0.5115 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006297/0.3704, allocations: 405.1 kB / 0.5119 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.3704, allocations: 19.64 kB / 0.5119 GB, free: 1.914 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.677e-05/0.3705, allocations: 32.84 kB / 0.512 GB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.371, allocations: 361.5 kB / 0.5123 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.371, allocations: 1.156 kB / 0.5123 GB, free: 1.703 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.3711, allocations: 10.97 kB / 0.5123 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.3711, allocations: 11.17 kB / 0.5123 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000408/0.3715, allocations: 260.6 kB / 0.5126 GB, free: 1.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.373, allocations: 1.442 MB / 0.514 GB, free: 0.5039 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000252/0.3733, allocations: 160.9 kB / 0.5141 GB, free: 420 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.3734, allocations: 80.83 kB / 0.5142 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.3735, allocations: 2.281 kB / 0.5142 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.792e-05/0.3735, allocations: 41.38 kB / 0.5143 GB, free: 332 kB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.3735, allocations: 0 / 0.5143 GB, free: 332 kB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.00115/0.3746, allocations: 0.6768 MB / 0.5149 GB, free: 15.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.161e-05/0.3747, allocations: 83.8 kB / 0.515 GB, free: 15.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003808/0.3751, allocations: 299.6 kB / 0.5153 GB, free: 15.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.3751, allocations: 31.62 kB / 0.5153 GB, free: 15.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001754/0.3753, allocations: 215.9 kB / 0.5155 GB, free: 15.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.198e-05/0.3754, allocations: 61.17 kB / 0.5156 GB, free: 15.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.857e-05/0.3755, allocations: 51.98 kB / 0.5156 GB, free: 15.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.3757, allocations: 342.9 kB / 0.516 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.3758, allocations: 67.53 kB / 0.516 GB, free: 14.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.376, allocations: 175.1 kB / 0.5162 GB, free: 14.81 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003641/0.3764, allocations: 259.7 kB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3764, allocations: 1.219 kB / 0.5164 GB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004669/0.3769, allocations: 289.3 kB / 0.5167 GB, free: 14.49 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3769, allocations: 6.219 kB / 0.5167 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3769, allocations: 4.203 kB / 0.5167 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3769, allocations: 4.781 kB / 0.5167 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002654/0.3772, allocations: 64.53 kB / 0.5168 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.546e-05/0.3772, allocations: 5.953 kB / 0.5168 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.3774, allocations: 17.64 kB / 0.5168 GB, free: 14.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.302e-05/0.3774, allocations: 14.66 kB / 0.5168 GB, free: 14.46 MB / 398.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.0002046/0.3777, allocations: 167.9 kB / 0.517 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.3777, allocations: 28.39 kB / 0.517 GB, free: 14.31 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004899/0.3782, allocations: 236.9 kB / 0.5172 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.3782, allocations: 6.469 kB / 0.5172 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3783, allocations: 5.156 kB / 0.5173 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.3783, allocations: 2.75 kB / 0.5173 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009663/0.3792, allocations: 0.6257 MB / 0.5179 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3793, allocations: 1.859 kB / 0.5179 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002202/0.3795, allocations: 37.61 kB / 0.5179 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3795, allocations: 1.656 kB / 0.5179 GB, free: 13.76 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.685e-05/0.3795, allocations: 7.062 kB / 0.5179 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.3795, allocations: 1.25 kB / 0.5179 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.3795, allocations: 1.953 kB / 0.5179 GB, free: 13.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006305/0.3802, allocations: 430.8 kB / 0.5183 GB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.675e-05/0.3803, allocations: 105.1 kB / 0.5184 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/0.3803, allocations: 6.047 kB / 0.5184 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001618/0.3805, allocations: 12.08 kB / 0.5184 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.3805, allocations: 14.23 kB / 0.5185 GB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.682e-05/0.3806, allocations: 8.281 kB / 0.5185 GB, free: 13.37 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002788/0.3808, allocations: 212.5 kB / 0.5187 GB, free: 13.26 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3808, allocations: 0 / 0.5187 GB, free: 13.26 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003633/0.3812, allocations: 60.38 kB / 0.5187 GB, free: 13.25 MB / 398.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.0009061/0.3821, allocations: 0.9515 MB / 0.5197 GB, free: 12.47 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003427/0.3825, allocations: 193.4 kB / 0.5198 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3825, allocations: 0 / 0.5198 GB, free: 12.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001475/0.3826, allocations: 93.25 kB / 0.5199 GB, free: 12.39 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/0.3832, allocations: 77.31 kB / 0.52 GB, free: 12.35 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/0.3868, allocations: 2.898 MB / 0.5228 GB, free: 10.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.3873, allocations: 0.8063 MB / 0.5236 GB, free: 9.613 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001797/0.3874, allocations: 55.38 kB / 0.5237 GB, free: 9.602 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001699/0.3876, allocations: 110.7 kB / 0.5238 GB, free: 9.52 MB / 398.1 MB Notification: Performance of SimCode: time 1.007e-05/0.3876, allocations: 3.938 kB / 0.5238 GB, free: 9.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.4183, allocations: 5.98 MB / 0.5296 GB, free: 8.094 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.976/9.394, allocations: 20.48 kB / 0.5296 GB, free: 8.078 MB / 398.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)