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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001028/0.001029, allocations: 182.7 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.753/1.753, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001865/0.001865, allocations: 122.3 kB / 253.5 MB, free: 9.578 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1664/0.1664, allocations: 37.92 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.901e-05/3.937e-05, allocations: 0 / 397.6 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.2811, allocations: 53.22 MB / 450.9 MB, free: 13.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1496/0.4308, allocations: 90.15 MB / 0.5283 GB, free: 3.176 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000442/0.4313, allocations: 91.81 kB / 0.5284 GB, free: 3.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3946/0.8259, allocations: 7.381 MB / 0.5356 GB, free: 87.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.8259, allocations: 0 / 0.5356 GB, free: 87.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.237e-05/0.826, allocations: 10.53 kB / 0.5356 GB, free: 87.67 MB / 378.7 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.001047/0.827, allocations: 0.5839 MB / 0.5362 GB, free: 87.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.8271, allocations: 13.44 kB / 0.5362 GB, free: 87.21 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.064e-05/0.8272, allocations: 57.25 kB / 0.5363 GB, free: 87.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.38e-05/0.8273, allocations: 37.22 kB / 0.5363 GB, free: 87.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002096/0.8294, allocations: 0.8051 MB / 0.5371 GB, free: 86.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.8295, allocations: 22.88 kB / 0.5371 GB, free: 86.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.279e-05/0.8295, allocations: 24.75 kB / 0.5371 GB, free: 86.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006441/0.8302, allocations: 345.8 kB / 0.5375 GB, free: 86.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.8302, allocations: 1.031 kB / 0.5375 GB, free: 86.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.408e-05/0.8303, allocations: 15.11 kB / 0.5375 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.8303, allocations: 6.875 kB / 0.5375 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004437/0.8307, allocations: 228.3 kB / 0.5377 GB, free: 86.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.8325, allocations: 1.359 MB / 0.539 GB, free: 85.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000381/0.8329, allocations: 164 kB / 0.5392 GB, free: 85.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002323/0.8331, allocations: 102.4 kB / 0.5393 GB, free: 85.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.8332, allocations: 6.312 kB / 0.5393 GB, free: 85.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.8332, allocations: 39.69 kB / 0.5393 GB, free: 85.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.713e-06/0.8332, allocations: 0 / 0.5393 GB, free: 85.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=15): time 0.001379/0.8346, allocations: 0.6004 MB / 0.5399 GB, free: 84.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.8347, allocations: 79.23 kB / 0.54 GB, free: 84.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003565/0.835, allocations: 266.2 kB / 0.5403 GB, free: 84.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.635e-05/0.8351, allocations: 30.86 kB / 0.5403 GB, free: 84.55 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.8352, allocations: 210.6 kB / 0.5405 GB, free: 84.37 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.237e-05/0.8353, allocations: 60.3 kB / 0.5405 GB, free: 84.33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.263e-05/0.8353, allocations: 6.031 kB / 0.5405 GB, free: 84.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.8354, allocations: 337.8 kB / 0.5409 GB, free: 84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.8356, allocations: 61.2 kB / 0.5409 GB, free: 83.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001986/0.8358, allocations: 162.3 kB / 0.5411 GB, free: 83.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000259/0.8361, allocations: 88.31 kB / 0.5412 GB, free: 83.8 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.8361, allocations: 5.688 kB / 0.5412 GB, free: 83.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008083/0.8369, allocations: 303.9 kB / 0.5415 GB, free: 83.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.352e-05/0.8369, allocations: 5.938 kB / 0.5415 GB, free: 83.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.837, allocations: 4.094 kB / 0.5415 GB, free: 83.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003085/0.8373, allocations: 51.56 kB / 0.5415 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.8375, allocations: 49.33 kB / 0.5416 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/0.8394, allocations: 1.459 MB / 0.543 GB, free: 82.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000177/0.8396, allocations: 12.69 kB / 0.543 GB, free: 82.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.329e-05/0.8396, allocations: 17.16 kB / 0.543 GB, free: 82.28 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001362/0.8398, allocations: 125 kB / 0.5431 GB, free: 82.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.195e-05/0.8399, allocations: 27.78 kB / 0.5432 GB, free: 82.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005677/0.8404, allocations: 226.4 kB / 0.5434 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.8405, allocations: 6.188 kB / 0.5434 GB, free: 82.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.8405, allocations: 1.25 kB / 0.5434 GB, free: 82.03 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.8405, allocations: 9.203 kB / 0.5434 GB, free: 82.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.8416, allocations: 0.6223 MB / 0.544 GB, free: 81.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.8416, allocations: 1.125 kB / 0.544 GB, free: 81.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.8417, allocations: 26.33 kB / 0.544 GB, free: 81.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002005/0.8419, allocations: 56.47 kB / 0.5441 GB, free: 81.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.402e-05/0.842, allocations: 7.406 kB / 0.5441 GB, free: 81.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001272/0.8432, allocations: 1.459 MB / 0.5455 GB, free: 80.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.8433, allocations: 0 / 0.5455 GB, free: 80.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005085/0.8438, allocations: 414.4 kB / 0.5459 GB, free: 79.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.995e-05/0.8439, allocations: 98.42 kB / 0.546 GB, free: 79.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.8439, allocations: 7.812 kB / 0.546 GB, free: 79.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001274/0.8441, allocations: 2.812 kB / 0.546 GB, free: 79.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.8441, allocations: 22.23 kB / 0.546 GB, free: 79.83 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.47e-05/0.8442, allocations: 7.562 kB / 0.546 GB, free: 79.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002483/0.8444, allocations: 203.5 kB / 0.5462 GB, free: 79.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8444, allocations: 0 / 0.5462 GB, free: 79.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004241/0.8449, allocations: 78.11 kB / 0.5463 GB, free: 79.7 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008523/0.8457, allocations: 1.094 MB / 0.5474 GB, free: 78.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005266/0.8463, allocations: 283.7 kB / 0.5477 GB, free: 78.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.8463, allocations: 0 / 0.5477 GB, free: 78.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.8466, allocations: 197.8 kB / 0.5478 GB, free: 78.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004366/0.8471, allocations: 54.02 kB / 0.5479 GB, free: 78.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/0.8485, allocations: 0.6241 MB / 0.5485 GB, free: 78.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.8489, allocations: 0.8148 MB / 0.5493 GB, free: 77.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001793/0.8491, allocations: 42.59 kB / 0.5493 GB, free: 77.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.8492, allocations: 100.3 kB / 0.5494 GB, free: 77.27 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.8493, allocations: 0 / 0.5494 GB, free: 77.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02534/0.8746, allocations: 5.576 MB / 0.5549 GB, free: 72.75 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002541/0.8749, allocations: 175.7 kB / 0.555 GB, free: 72.52 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.043/2.918, allocations: 0 / 0.555 GB, free: 72.52 MB / 378.7 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/linux/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)