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.001018/0.001018, allocations: 117.9 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.0009952/0.0009952, 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.203/1.203, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1563/0.1563, allocations: 38.02 MB / 329.4 MB, free: 9.012 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 62.59 kB / 398.4 MB, free: 34.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07343/0.07457, allocations: 58.07 MB / 456.4 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Line): time 0.005606/0.08019, allocations: 5.754 MB / 462.2 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.08231, allocations: 1.543 MB / 463.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003336/0.08266, allocations: 31.81 kB / 463.8 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003771/0.08304, allocations: 107.3 kB / 463.9 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005992/0.08366, allocations: 306.7 kB / 464.2 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003226/0.08399, allocations: 139.8 kB / 464.3 MB, free: 452 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006231/0.08463, allocations: 0.6931 MB / 465 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002099/0.08485, allocations: 168.1 kB / 465.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003627/0.08522, allocations: 310.7 kB / 465.5 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005251/0.08575, allocations: 454.7 kB / 465.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.056e-05/0.08584, allocations: 48 kB / 466 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.09e-05/0.08594, allocations: 48 kB / 466 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.08615, allocations: 235.4 kB / 466.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002499/0.08641, allocations: 282.7 kB / 466.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004491/0.08686, allocations: 0.5997 MB / 467.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.08687, allocations: 0 / 467.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.41e-07/0.08688, allocations: 0 / 467.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.08689, allocations: 0 / 467.1 MB, free: 13.63 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001632/0.08853, allocations: 0.944 MB / 468.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.08857, allocations: 15.89 kB / 468.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.044e-05/0.08865, allocations: 70.72 kB / 468.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.08876, allocations: 52.28 kB / 468.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009106/0.08968, allocations: 0.5953 MB / 468.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.125e-05/0.08971, allocations: 32.59 kB / 468.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.26e-05/0.0898, allocations: 40 kB / 468.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006939/0.09049, allocations: 0.5479 MB / 469.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.09051, allocations: 4 kB / 469.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.09056, allocations: 12 kB / 469.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002806/0.09084, allocations: 84.52 kB / 469.5 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004774/0.09133, allocations: 362.3 kB / 469.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.09376, allocations: 2.062 MB / 471.9 MB, free: 8.602 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000736/0.09451, allocations: 389.1 kB / 472.3 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004946/0.09501, allocations: 317.5 kB / 472.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.88e-05/0.09505, allocations: 4 kB / 472.6 MB, free: 7.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.09508, allocations: 34.56 kB / 472.7 MB, free: 7.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.512e-06/0.09508, allocations: 4 kB / 472.7 MB, free: 7.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.003877/0.09897, allocations: 2.538 MB / 475.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.79e-05/0.09901, allocations: 81.11 kB / 475.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003246/0.09934, allocations: 381.6 kB / 475.6 MB, free: 4.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.09939, allocations: 33.7 kB / 475.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.09953, allocations: 256.2 kB / 475.9 MB, free: 4.312 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.263e-05/0.09963, allocations: 130.1 kB / 476.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001314/0.09977, allocations: 102.2 kB / 476.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001099/0.09988, allocations: 354.7 kB / 476.5 MB, free: 3.723 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003085/0.1002, allocations: 249 kB / 476.7 MB, free: 3.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003656/0.1006, allocations: 377.6 kB / 477.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006861/0.1013, allocations: 0.6196 MB / 477.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1013, allocations: 0 / 477.7 MB, free: 2.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001468/0.1027, allocations: 1.025 MB / 478.8 MB, free: 1.363 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.1028, allocations: 8 kB / 478.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.1028, allocations: 0 / 478.8 MB, free: 1.355 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008516/0.1036, allocations: 405.5 kB / 479.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002624/0.1039, allocations: 87.89 kB / 479.3 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004375/0.1083, allocations: 5.147 MB / 484.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002704/0.1086, allocations: 47.88 kB / 484.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.205e-05/0.1086, allocations: 16 kB / 484.5 MB, free: 11.38 MB / 366.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.0001935/0.1088, allocations: 201.7 kB / 484.7 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.486e-05/0.1089, allocations: 43.44 kB / 484.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.1102, allocations: 0.8311 MB / 485.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1102, allocations: 4 kB / 485.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.1102, allocations: 4 kB / 485.5 MB, free: 10.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.1102, allocations: 3.984 kB / 485.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001792/0.112, allocations: 1.414 MB / 487 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.112, allocations: 0 / 487 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.1122, allocations: 43.91 kB / 487 MB, free: 8.723 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.1132, allocations: 441.3 kB / 487.4 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.703e-05/0.1133, allocations: 35.97 kB / 487.5 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004746/0.118, allocations: 6.722 MB / 494.2 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.1181, allocations: 8.031 kB / 494.2 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.1195, allocations: 1.132 MB / 495.3 MB, free: 15.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.119e-05/0.1196, allocations: 120.6 kB / 495.4 MB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.732e-05/0.1197, allocations: 31.98 kB / 495.5 MB, free: 15.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002594/0.12, allocations: 31.95 kB / 495.5 MB, free: 15.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.453e-05/0.1201, allocations: 31.94 kB / 495.5 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.679e-05/0.1201, allocations: 11.98 kB / 495.6 MB, free: 15.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002339/0.1203, allocations: 275.1 kB / 495.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1204, allocations: 0 / 495.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005304/0.1209, allocations: 160 kB / 496 MB, free: 15.09 MB / 382.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.001749/0.1226, allocations: 1.685 MB / 497.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001481/0.1241, allocations: 0.974 MB / 498.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.1242, allocations: 0 / 498.6 MB, free: 12.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.1254, allocations: 1.079 MB / 499.7 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005859/0.126, allocations: 135.6 kB / 499.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007402/0.1335, allocations: 6.471 MB / 0.4945 GB, free: 4.363 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003796/0.1338, allocations: 0.8859 MB / 0.4953 GB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.1341, allocations: 68.34 kB / 0.4954 GB, free: 3.387 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.1343, allocations: 159.4 kB / 0.4955 GB, free: 3.23 MB / 382.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1343, allocations: 0 / 0.4955 GB, free: 3.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.904/3.038, allocations: 12.31 MB / 0.5076 GB, free: 7.078 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003239/3.039, allocations: 220.6 kB / 0.5078 GB, free: 6.824 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/5.109, allocations: 4 kB / 0.5078 GB, free: 6.82 MB / 398.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)