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/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.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/Complex 3.2.2+maint.om/package.mo): time 0.002086/0.002086, allocations: 182.5 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.828/1.828, allocations: 194.3 MB / 208.4 MB, free: 6.715 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.001714/0.001713, allocations: 112.7 kB / 253.5 MB, free: 9.59 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1932/0.1932, allocations: 37.9 MB / 336.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 4.841e-05/4.853e-05, allocations: 4 kB / 397.6 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2919, allocations: 53.22 MB / 450.9 MB, free: 13.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1224/0.4144, allocations: 91.24 MB / 0.5294 GB, free: 2.074 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002394/0.4147, allocations: 87.81 kB / 0.5295 GB, free: 1.992 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3169/0.7316, allocations: 7.665 MB / 0.537 GB, free: 87.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.54e-06/0.7316, allocations: 3.75 kB / 0.537 GB, free: 87.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.955e-05/0.7317, allocations: 14.19 kB / 0.537 GB, free: 87.96 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001492/0.7332, allocations: 0.5876 MB / 0.5376 GB, free: 87.49 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.7333, allocations: 9.125 kB / 0.5376 GB, free: 87.49 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001937/0.7335, allocations: 64.12 kB / 0.5376 GB, free: 87.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.7337, allocations: 37.5 kB / 0.5377 GB, free: 87.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002227/0.7359, allocations: 0.718 MB / 0.5384 GB, free: 87.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.998e-05/0.736, allocations: 19.78 kB / 0.5384 GB, free: 87.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.617e-05/0.7361, allocations: 24.25 kB / 0.5384 GB, free: 87.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007098/0.7368, allocations: 351.5 kB / 0.5387 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.7368, allocations: 1.062 kB / 0.5387 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.37e-05/0.7369, allocations: 14.28 kB / 0.5388 GB, free: 86.83 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.7369, allocations: 10.86 kB / 0.5388 GB, free: 86.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005636/0.7375, allocations: 253 kB / 0.539 GB, free: 86.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.7396, allocations: 1.442 MB / 0.5404 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.7399, allocations: 157.7 kB / 0.5406 GB, free: 85.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.7401, allocations: 78.56 kB / 0.5406 GB, free: 85.51 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.909e-05/0.7402, allocations: 1.781 kB / 0.5406 GB, free: 85.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.7402, allocations: 40.06 kB / 0.5407 GB, free: 85.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=15): time 2.043e-06/0.7402, allocations: 0.6562 kB / 0.5407 GB, free: 85.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=16): time 0.001437/0.7416, allocations: 0.6154 MB / 0.5413 GB, free: 85.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/0.7417, allocations: 79.39 kB / 0.5414 GB, free: 84.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004903/0.7422, allocations: 262.6 kB / 0.5416 GB, free: 84.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.429e-05/0.7422, allocations: 26.48 kB / 0.5416 GB, free: 84.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.7424, allocations: 221.4 kB / 0.5418 GB, free: 84.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.7425, allocations: 58.36 kB / 0.5419 GB, free: 84.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.7425, allocations: 4.969 kB / 0.5419 GB, free: 84.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.7426, allocations: 340.1 kB / 0.5422 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001343/0.7427, allocations: 67.95 kB / 0.5423 GB, free: 84.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.7429, allocations: 164.8 kB / 0.5425 GB, free: 84.03 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001723/0.7431, allocations: 89.14 kB / 0.5425 GB, free: 84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.7431, allocations: 0.6875 kB / 0.5425 GB, free: 84 MB / 378.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004974/0.7436, allocations: 287.2 kB / 0.5428 GB, free: 83.88 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.7437, allocations: 6 kB / 0.5428 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.7437, allocations: 4.25 kB / 0.5428 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.19e-05/0.7437, allocations: 5.312 kB / 0.5428 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002703/0.744, allocations: 59.27 kB / 0.5429 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.492e-05/0.744, allocations: 7.891 kB / 0.5429 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002048/0.7442, allocations: 15.12 kB / 0.5429 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.7443, allocations: 13.11 kB / 0.5429 GB, free: 83.87 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 (29): * Single equations (assignments): 29 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.459e-05/0.7443, allocations: 128.7 kB / 0.543 GB, free: 83.74 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.155e-05/0.7444, allocations: 29.05 kB / 0.5431 GB, free: 83.72 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004729/0.7449, allocations: 236.3 kB / 0.5433 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.7449, allocations: 0 / 0.5433 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.7449, allocations: 3.281 kB / 0.5433 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.745, allocations: 0 / 0.5433 GB, free: 83.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007846/0.7457, allocations: 0.6213 MB / 0.5439 GB, free: 83.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.7458, allocations: 4.031 kB / 0.5439 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001874/0.746, allocations: 37.66 kB / 0.5439 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.746, allocations: 3.625 kB / 0.5439 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.583e-05/0.746, allocations: 4 kB / 0.5439 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.746, allocations: 0 / 0.5439 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.746, allocations: 3.906 kB / 0.544 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005476/0.7466, allocations: 451 kB / 0.5444 GB, free: 82.81 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001067/0.7467, allocations: 103.4 kB / 0.5445 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.871e-05/0.7467, allocations: 4 kB / 0.5445 GB, free: 82.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.7469, allocations: 7.828 kB / 0.5445 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.345e-05/0.747, allocations: 14.98 kB / 0.5445 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.747, allocations: 3.938 kB / 0.5445 GB, free: 82.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002138/0.7472, allocations: 212 kB / 0.5447 GB, free: 82.55 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7472, allocations: 8 kB / 0.5447 GB, free: 82.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004233/0.7476, allocations: 58.44 kB / 0.5448 GB, free: 82.54 MB / 378.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008687/0.7485, allocations: 1.131 MB / 0.5459 GB, free: 81.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003617/0.7489, allocations: 185 kB / 0.5461 GB, free: 81.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/0.7489, allocations: 0 / 0.5461 GB, free: 81.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.7491, allocations: 90.75 kB / 0.5461 GB, free: 81.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005238/0.7496, allocations: 72.56 kB / 0.5462 GB, free: 81.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001613/0.7512, allocations: 0.5388 MB / 0.5467 GB, free: 81.01 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.7516, allocations: 0.8212 MB / 0.5475 GB, free: 80.24 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002135/0.7518, allocations: 53.39 kB / 0.5476 GB, free: 80.21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.752, allocations: 109.1 kB / 0.5477 GB, free: 80.12 MB / 378.7 MB Notification: Performance of SimCode: time 1.102e-06/0.752, allocations: 0 / 0.5477 GB, free: 80.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02049/0.7725, allocations: 5.561 MB / 0.5531 GB, free: 75.06 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.7727, allocations: 164.3 kB / 0.5533 GB, free: 74.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.141/2.913, allocations: 0 / 0.5533 GB, free: 74.82 MB / 378.7 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/linux/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)