Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.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.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Line,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line",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.001482/0.001482, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001545/0.001545, allocations: 200 kB / 18.01 MB, free: 5.047 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.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1727/0.1727, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 67.89 kB / 457.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2835, allocations: 58.05 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.005394/0.2889, allocations: 4.912 MB / 0.5084 GB, free: 4.035 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001758/0.2907, allocations: 1.294 MB / 0.5097 GB, free: 3.121 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.2909, allocations: 21.28 kB / 0.5097 GB, free: 3.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003986/0.2913, allocations: 121.1 kB / 0.5098 GB, free: 3.043 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006631/0.2921, allocations: 326 kB / 0.5101 GB, free: 2.875 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.2925, allocations: 157.9 kB / 0.5103 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007002/0.2932, allocations: 0.696 MB / 0.511 GB, free: 2.504 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002483/0.2934, allocations: 166.7 kB / 0.5111 GB, free: 2.441 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.2939, allocations: 306.7 kB / 0.5114 GB, free: 2.312 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006289/0.2945, allocations: 435.6 kB / 0.5118 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.265e-05/0.2946, allocations: 44.91 kB / 0.5119 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001246/0.2947, allocations: 47.31 kB / 0.5119 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002578/0.295, allocations: 240 kB / 0.5121 GB, free: 2.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000283/0.2953, allocations: 286 kB / 0.5124 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006896/0.296, allocations: 0.6055 MB / 0.513 GB, free: 1.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.296, allocations: 0 / 0.513 GB, free: 1.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.296, allocations: 0 / 0.513 GB, free: 1.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.296, allocations: 1.344 kB / 0.513 GB, free: 1.719 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001708/0.2977, allocations: 0.9616 MB / 0.5139 GB, free: 1.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.519e-05/0.2978, allocations: 14.05 kB / 0.514 GB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.348e-05/0.2979, allocations: 74.64 kB / 0.514 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.298, allocations: 55.39 kB / 0.5141 GB, free: 1.008 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.299, allocations: 0.6191 MB / 0.5147 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.444e-05/0.2991, allocations: 22.69 kB / 0.5147 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.122e-05/0.2992, allocations: 43.27 kB / 0.5147 GB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008204/0.3, allocations: 0.5536 MB / 0.5153 GB, free: 392 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3, allocations: 4.969 kB / 0.5153 GB, free: 388 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.131e-05/0.3001, allocations: 15.41 kB / 0.5153 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003115/0.3004, allocations: 86.64 kB / 0.5154 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006068/0.301, allocations: 362.8 kB / 0.5157 GB, free: 264 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003169/0.3042, allocations: 2.058 MB / 0.5177 GB, free: 15 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008628/0.3051, allocations: 385.2 kB / 0.5181 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000544/0.3056, allocations: 298.2 kB / 0.5184 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.487e-05/0.3057, allocations: 2.531 kB / 0.5184 GB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.3057, allocations: 37.45 kB / 0.5184 GB, free: 14.72 MB / 398.1 MB Notification: Performance of pre-optimization done (n=32): time 2.274e-06/0.3057, allocations: 0 / 0.5184 GB, free: 14.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.004658/0.3104, allocations: 2.547 MB / 0.5209 GB, free: 13.24 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.3105, allocations: 81.75 kB / 0.521 GB, free: 13.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004439/0.3109, allocations: 379.6 kB / 0.5214 GB, free: 12.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.394e-05/0.311, allocations: 36.7 kB / 0.5214 GB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.3112, allocations: 257.1 kB / 0.5216 GB, free: 12.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.3113, allocations: 140.2 kB / 0.5218 GB, free: 12.6 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001628/0.3115, allocations: 102.7 kB / 0.5219 GB, free: 12.55 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.3117, allocations: 358.1 kB / 0.5222 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.3121, allocations: 243.9 kB / 0.5224 GB, free: 12.15 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/0.3125, allocations: 369.5 kB / 0.5228 GB, free: 11.94 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007913/0.3133, allocations: 0.6102 MB / 0.5234 GB, free: 11.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3133, allocations: 1.219 kB / 0.5234 GB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001694/0.315, allocations: 1.006 MB / 0.5244 GB, free: 11.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.315, allocations: 7.25 kB / 0.5244 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.315, allocations: 3.469 kB / 0.5244 GB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001006/0.3161, allocations: 415.1 kB / 0.5248 GB, free: 11.24 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002735/0.3163, allocations: 79.5 kB / 0.5249 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005385/0.3217, allocations: 5.135 MB / 0.5299 GB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.3221, allocations: 41.22 kB / 0.5299 GB, free: 7.586 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.3222, allocations: 24.45 kB / 0.5299 GB, free: 7.578 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002975/0.3225, allocations: 202.6 kB / 0.5301 GB, free: 7.422 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.408e-05/0.3226, allocations: 43.69 kB / 0.5302 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001471/0.324, allocations: 0.8343 MB / 0.531 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3241, allocations: 4.375 kB / 0.531 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.3241, allocations: 2.844 kB / 0.531 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.3241, allocations: 1.781 kB / 0.531 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002127/0.3262, allocations: 1.419 MB / 0.5324 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.3262, allocations: 1.156 kB / 0.5324 GB, free: 6.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001477/0.3264, allocations: 36.33 kB / 0.5324 GB, free: 6.293 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.3275, allocations: 453.7 kB / 0.5329 GB, free: 6.039 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.945e-05/0.3276, allocations: 34.16 kB / 0.5329 GB, free: 6.023 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0059/0.3335, allocations: 6.718 MB / 0.5394 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3335, allocations: 5.062 kB / 0.5394 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001792/0.3353, allocations: 1.127 MB / 0.5405 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.3355, allocations: 125.1 kB / 0.5407 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.976e-05/0.3356, allocations: 33.62 kB / 0.5407 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.3359, allocations: 33.23 kB / 0.5407 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.3361, allocations: 34 kB / 0.5408 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-05/0.3361, allocations: 15.86 kB / 0.5408 GB, free: 14.95 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003126/0.3364, allocations: 262.2 kB / 0.541 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.3364, allocations: 1.406 kB / 0.541 GB, free: 14.79 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006965/0.3371, allocations: 157.5 kB / 0.5412 GB, free: 14.77 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 14 (line.v[1,1],line.v[1,2],line.v[1,3],line.v[2,1],line.v[2,2],line.v[2,3],line.i[1,1],line.i[1,2],line.i[1,3],line.i[1,4],line.i[2,1],line.i[2,2],line.i[2,3],line.i[2,4]) * 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 (29): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001979/0.3391, allocations: 1.679 MB / 0.5428 GB, free: 13.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.3408, allocations: 0.9023 MB / 0.5437 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3408, allocations: 5.438 kB / 0.5437 GB, free: 13.07 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001526/0.3424, allocations: 1.079 MB / 0.5448 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000706/0.3431, allocations: 121.6 kB / 0.5449 GB, free: 12.06 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008856/0.3519, allocations: 6.274 MB / 0.551 GB, free: 6.105 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006035/0.3526, allocations: 0.8859 MB / 0.5519 GB, free: 5.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002512/0.3528, allocations: 76.33 kB / 0.5519 GB, free: 5.117 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002059/0.353, allocations: 155.4 kB / 0.5521 GB, free: 4.969 MB / 414.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3531, allocations: 0 / 0.5521 GB, free: 4.969 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.121/2.474, allocations: 12.46 MB / 0.5643 GB, free: 8.645 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/14.59, allocations: 19.56 kB / 0.5643 GB, free: 8.625 MB / 430.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Line.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Line.pipe 2>&1)