Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.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.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance",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.001284/0.001289, allocations: 111.7 kB / 16.63 MB, free: 6.812 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.001299/0.001299, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.223/1.223, allocations: 222.9 MB / 241.2 MB, free: 15.38 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1636/0.1636, allocations: 38.02 MB / 329.4 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 55.08 kB / 398.4 MB, free: 34.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07138/0.07255, allocations: 58.07 MB / 456.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Impedance): time 0.00502/0.07759, allocations: 4.985 MB / 461.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001547/0.07916, allocations: 1.13 MB / 462.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002504/0.07942, allocations: 23.81 kB / 462.6 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001748/0.0796, allocations: 43.69 kB / 462.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005232/0.08014, allocations: 215.1 kB / 462.8 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002151/0.08037, allocations: 91.83 kB / 462.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004475/0.08083, allocations: 0.4945 MB / 463.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002044/0.08104, allocations: 143.9 kB / 463.6 MB, free: 1.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002659/0.08131, allocations: 227 kB / 463.8 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003695/0.08169, allocations: 283.1 kB / 464.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.08175, allocations: 24 kB / 464.1 MB, free: 0.625 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.856e-05/0.08181, allocations: 24 kB / 464.1 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.08195, allocations: 155.6 kB / 464.3 MB, free: 460 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001441/0.0821, allocations: 179.1 kB / 464.4 MB, free: 280 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.08239, allocations: 354.7 kB / 464.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.0824, allocations: 4 kB / 464.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.08241, allocations: 0 / 464.8 MB, free: 15.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.08243, allocations: 3.938 kB / 464.8 MB, free: 15.92 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0009262/0.08336, allocations: 0.6671 MB / 465.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.09e-05/0.0834, allocations: 11.89 kB / 465.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.549e-05/0.08346, allocations: 58.73 kB / 465.5 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.143e-05/0.08352, allocations: 40.47 kB / 465.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004063/0.08394, allocations: 363.8 kB / 465.9 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.08396, allocations: 20.5 kB / 465.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.23e-05/0.08401, allocations: 28 kB / 466 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004503/0.08447, allocations: 352.7 kB / 466.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.08448, allocations: 0 / 466.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.31e-05/0.08451, allocations: 8 kB / 466.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.08462, allocations: 32.53 kB / 466.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003478/0.08498, allocations: 246 kB / 466.6 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001382/0.08637, allocations: 1.37 MB / 468 MB, free: 12.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002992/0.08668, allocations: 161.1 kB / 468.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.08686, allocations: 109.6 kB / 468.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.0869, allocations: 8 kB / 468.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.08692, allocations: 30.56 kB / 468.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.262e-06/0.08693, allocations: 0 / 468.3 MB, free: 12.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001108/0.08804, allocations: 0.7627 MB / 469 MB, free: 11.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.08809, allocations: 77.11 kB / 469.1 MB, free: 11.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000239/0.08833, allocations: 300.4 kB / 469.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.08835, allocations: 29.7 kB / 469.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.08847, allocations: 219.5 kB / 469.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.694e-05/0.08851, allocations: 51.34 kB / 469.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.717e-05/0.08858, allocations: 57.73 kB / 469.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/0.08868, allocations: 338.8 kB / 470.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.942e-05/0.08878, allocations: 67.95 kB / 470.1 MB, free: 10.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.08893, allocations: 163.9 kB / 470.3 MB, free: 9.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002557/0.08919, allocations: 256.5 kB / 470.5 MB, free: 9.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.0892, allocations: 7.938 kB / 470.6 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004338/0.08964, allocations: 313.8 kB / 470.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.08966, allocations: 4 kB / 470.9 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.08967, allocations: 4.438 kB / 470.9 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.08984, allocations: 56.81 kB / 470.9 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.09001, allocations: 51.91 kB / 471 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001106/0.09112, allocations: 1.609 MB / 472.6 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.09127, allocations: 11.98 kB / 472.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.526e-05/0.09129, allocations: 8 kB / 472.6 MB, free: 7.469 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 (28): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001384/0.09143, allocations: 181.8 kB / 472.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.503e-05/0.09148, allocations: 27.72 kB / 472.8 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003528/0.09184, allocations: 243.3 kB / 473 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.09185, allocations: 7.938 kB / 473.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.09186, allocations: 0 / 473.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.09187, allocations: 0 / 473.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000711/0.09258, allocations: 0.6405 MB / 473.7 MB, free: 6.301 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.0926, allocations: 4 kB / 473.7 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-05/0.0927, allocations: 23.92 kB / 473.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001668/0.09287, allocations: 56.8 kB / 473.8 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.723e-05/0.0929, allocations: 7.984 kB / 473.8 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.09396, allocations: 1.609 MB / 475.4 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.09397, allocations: 4.031 kB / 475.4 MB, free: 4.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004324/0.09441, allocations: 401.4 kB / 475.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.09448, allocations: 108.8 kB / 475.9 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.389e-05/0.09452, allocations: 4 kB / 475.9 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001287/0.09465, allocations: 12.12 kB / 475.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.067e-05/0.09469, allocations: 11.97 kB / 475.9 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.09471, allocations: 4 kB / 475.9 MB, free: 3.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.09487, allocations: 211.1 kB / 476.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09488, allocations: 0 / 476.1 MB, free: 3.672 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003347/0.09522, allocations: 68 kB / 476.2 MB, free: 3.605 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (ind.i[1],ind.i[2]) * 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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0006204/0.09584, allocations: 0.9381 MB / 477.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004694/0.09632, allocations: 319.3 kB / 477.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.09634, allocations: 0 / 477.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002953/0.09664, allocations: 210.5 kB / 477.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004337/0.09708, allocations: 68.73 kB / 477.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002909/0.1, allocations: 3.158 MB / 480.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002851/0.1003, allocations: 0.8065 MB / 481.7 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.1004, allocations: 46.94 kB / 481.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.1006, allocations: 103.4 kB / 481.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1006, allocations: 0 / 481.8 MB, free: 13.7 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.615/2.715, allocations: 5.901 MB / 487.7 MB, free: 7.957 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/2.716, allocations: 228.8 kB / 488 MB, free: 7.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.971/4.687, allocations: 0 / 488 MB, free: 7.699 MB / 366.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Impedance.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Impedance.pipe 2>&1)