Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.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.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Sensor,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor",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.001398/0.001398, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.642/1.642, allocations: 194.3 MB / 203.1 MB, free: 13.04 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.001777/0.001776, allocations: 117.5 kB / 248.1 MB, free: 24 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1859/0.1859, allocations: 37.94 MB / 330.9 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.043e-05/2.058e-05, allocations: 4 kB / 390.5 MB, free: 6.984 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3312, allocations: 53.22 MB / 443.7 MB, free: 17.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.131/0.4623, allocations: 88.67 MB / 0.5199 GB, free: 8.871 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002685/0.4626, allocations: 83.95 kB / 0.52 GB, free: 8.789 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01894/0.4815, allocations: 6.59 MB / 0.5264 GB, free: 2.117 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4816, allocations: 0 / 0.5264 GB, free: 2.117 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.4816, allocations: 7.984 kB / 0.5264 GB, free: 2.109 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0008383/0.4825, allocations: 0.5583 MB / 0.5269 GB, free: 1.508 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.4825, allocations: 8.031 kB / 0.527 GB, free: 1.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.991e-05/0.4826, allocations: 35.53 kB / 0.527 GB, free: 1.465 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.4838, allocations: 0.5912 MB / 0.5276 GB, free: 0.832 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.582e-05/0.4839, allocations: 8 kB / 0.5276 GB, free: 0.8242 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.294e-05/0.4839, allocations: 12 kB / 0.5276 GB, free: 0.8125 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003379/0.4843, allocations: 189 kB / 0.5278 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004053/0.4847, allocations: 286 kB / 0.528 GB, free: 324 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.4847, allocations: 0 / 0.528 GB, free: 324 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.4847, allocations: 0 / 0.528 GB, free: 324 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.4847, allocations: 12 kB / 0.528 GB, free: 312 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2655/0.7503, allocations: 1.281 MB / 0.5293 GB, free: 87.8 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.7508, allocations: 136.8 kB / 0.5294 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001202/0.7509, allocations: 55.62 kB / 0.5295 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.782e-05/0.7509, allocations: 7.641 kB / 0.5295 GB, free: 87.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.751, allocations: 34.31 kB / 0.5295 GB, free: 87.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 3.387e-06/0.751, allocations: 1.281 kB / 0.5295 GB, free: 87.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=13): time 0.0008666/0.7519, allocations: 298.9 kB / 0.5298 GB, free: 87.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.7519, allocations: 79.33 kB / 0.5299 GB, free: 87.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000291/0.7522, allocations: 217.5 kB / 0.5301 GB, free: 87.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.643e-05/0.7522, allocations: 30.08 kB / 0.5301 GB, free: 87.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001386/0.7524, allocations: 199.8 kB / 0.5303 GB, free: 87.25 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.661e-05/0.7524, allocations: 44.03 kB / 0.5304 GB, free: 87.23 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-06/0.7525, allocations: 0 / 0.5304 GB, free: 87.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.7526, allocations: 339.3 kB / 0.5307 GB, free: 86.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.263e-05/0.7527, allocations: 47.03 kB / 0.5307 GB, free: 86.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.7528, allocations: 151.8 kB / 0.5309 GB, free: 86.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001409/0.7529, allocations: 72.16 kB / 0.5309 GB, free: 86.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.753, allocations: 1.031 kB / 0.5309 GB, free: 86.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003833/0.7533, allocations: 219 kB / 0.5311 GB, free: 86.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.7534, allocations: 6.281 kB / 0.5312 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.7534, allocations: 3.188 kB / 0.5312 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.159e-05/0.7534, allocations: 8.531 kB / 0.5312 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.7536, allocations: 49.23 kB / 0.5312 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.7537, allocations: 6.547 kB / 0.5312 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.7538, allocations: 5.281 kB / 0.5312 GB, free: 86.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.558e-05/0.7539, allocations: 14.22 kB / 0.5312 GB, free: 86.75 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 (25): * Single equations (assignments): 25 * 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 7.675e-05/0.754, allocations: 113.5 kB / 0.5313 GB, free: 86.64 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002615/0.7542, allocations: 164.7 kB / 0.5315 GB, free: 86.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.257e-05/0.7543, allocations: 24.86 kB / 0.5315 GB, free: 86.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003401/0.7546, allocations: 187.6 kB / 0.5317 GB, free: 86.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.7546, allocations: 3 kB / 0.5317 GB, free: 86.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.7547, allocations: 1.406 kB / 0.5317 GB, free: 86.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.7547, allocations: 5.688 kB / 0.5317 GB, free: 86.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006313/0.7553, allocations: 0.4916 MB / 0.5322 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.7553, allocations: 1.5 kB / 0.5322 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001424/0.7555, allocations: 28.53 kB / 0.5322 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.76e-06/0.7555, allocations: 1.562 kB / 0.5322 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.7555, allocations: 3.625 kB / 0.5322 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.7555, allocations: 5.531 kB / 0.5322 GB, free: 86.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/0.7555, allocations: 7.141 kB / 0.5322 GB, free: 86.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003073/0.7558, allocations: 308.8 kB / 0.5325 GB, free: 86.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.044e-05/0.7559, allocations: 97.91 kB / 0.5326 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.756, allocations: 5.688 kB / 0.5326 GB, free: 85.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.7561, allocations: 7.562 kB / 0.5326 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.7561, allocations: 12.3 kB / 0.5327 GB, free: 85.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.328e-05/0.7561, allocations: 7.812 kB / 0.5327 GB, free: 85.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.7563, allocations: 166.8 kB / 0.5328 GB, free: 85.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7563, allocations: 0 / 0.5328 GB, free: 85.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003789/0.7567, allocations: 51.25 kB / 0.5329 GB, free: 85.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (17): * Single equations (assignments): 16 * 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.0005278/0.7572, allocations: 0.9864 MB / 0.5338 GB, free: 85.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002591/0.7575, allocations: 146.5 kB / 0.534 GB, free: 85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.7575, allocations: 0 / 0.534 GB, free: 85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001041/0.7576, allocations: 69.44 kB / 0.534 GB, free: 85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000433/0.758, allocations: 49.41 kB / 0.5341 GB, free: 84.99 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008925/0.7589, allocations: 413.1 kB / 0.5345 GB, free: 84.79 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.7593, allocations: 0.7857 MB / 0.5352 GB, free: 84.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.7594, allocations: 42.42 kB / 0.5353 GB, free: 84.09 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001349/0.7596, allocations: 88.7 kB / 0.5354 GB, free: 84.08 MB / 378.7 MB Notification: Performance of SimCode: time 3.7e-07/0.7596, allocations: 5.156 kB / 0.5354 GB, free: 84.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02501/0.7846, allocations: 4.258 MB / 0.5395 GB, free: 83.83 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001453/0.7848, allocations: 143.6 kB / 0.5397 GB, free: 83.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.849/2.634, allocations: 0 / 0.5397 GB, free: 83.64 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Sensor.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Sensor.pipe 2>&1)