Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed",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.001112/0.001112, 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.539/1.539, 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.001681/0.001681, allocations: 124.6 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.235/0.235, allocations: 37.93 MB / 330.9 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.102e-05/2.104e-05, allocations: 4 kB / 390.5 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3275/0.3275, allocations: 53.23 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1501/0.4776, allocations: 93.59 MB / 0.5247 GB, free: 3.945 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.478, allocations: 91.89 kB / 0.5248 GB, free: 3.855 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2828/0.7608, allocations: 11.24 MB / 0.5357 GB, free: 89.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.7609, allocations: 5.125 kB / 0.5357 GB, free: 89.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.074e-05/0.7609, allocations: 13.33 kB / 0.5358 GB, free: 89.58 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009206/0.7618, allocations: 0.6283 MB / 0.5364 GB, free: 89.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.7619, allocations: 9.5 kB / 0.5364 GB, free: 89.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.61e-05/0.762, allocations: 46.81 kB / 0.5364 GB, free: 89.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009847/0.763, allocations: 0.5495 MB / 0.537 GB, free: 88.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.325e-05/0.7631, allocations: 48.47 kB / 0.537 GB, free: 88.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.995e-05/0.7632, allocations: 27.72 kB / 0.537 GB, free: 88.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004035/0.7636, allocations: 216.8 kB / 0.5372 GB, free: 88.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005061/0.7641, allocations: 385.8 kB / 0.5376 GB, free: 88.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.7641, allocations: 0 / 0.5376 GB, free: 88.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.107e-05/0.7642, allocations: 0 / 0.5376 GB, free: 88.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.7642, allocations: 11.12 kB / 0.5376 GB, free: 88.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.7658, allocations: 1.784 MB / 0.5394 GB, free: 86.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001839/0.766, allocations: 157.2 kB / 0.5395 GB, free: 86.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.553e-05/0.7661, allocations: 70.14 kB / 0.5396 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.745e-05/0.7662, allocations: 4.094 kB / 0.5396 GB, free: 86.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.7662, allocations: 34.52 kB / 0.5396 GB, free: 86.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.472e-06/0.7662, allocations: 0 / 0.5396 GB, free: 86.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=20): time 0.0009891/0.7672, allocations: 0.8023 MB / 0.5404 GB, free: 86.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.492e-05/0.7672, allocations: 106 kB / 0.5405 GB, free: 85.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001875/0.7674, allocations: 241 kB / 0.5407 GB, free: 85.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.7675, allocations: 25.7 kB / 0.5408 GB, free: 85.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.379e-05/0.7676, allocations: 242.5 kB / 0.541 GB, free: 85.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.926e-05/0.7676, allocations: 74.36 kB / 0.5411 GB, free: 85.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.195e-05/0.7676, allocations: 0 / 0.5411 GB, free: 85.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.485e-05/0.7677, allocations: 349.9 kB / 0.5414 GB, free: 85.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.02e-05/0.7678, allocations: 58.91 kB / 0.5414 GB, free: 85.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001414/0.7679, allocations: 194.2 kB / 0.5416 GB, free: 84.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00012/0.7681, allocations: 99.31 kB / 0.5417 GB, free: 84.93 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.7681, allocations: 3.938 kB / 0.5417 GB, free: 84.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000329/0.7684, allocations: 284.7 kB / 0.542 GB, free: 84.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.7684, allocations: 7.781 kB / 0.542 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.7684, allocations: 3.969 kB / 0.542 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.7685, allocations: 11.8 kB / 0.542 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002784/0.7688, allocations: 78.31 kB / 0.5421 GB, free: 84.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.7688, allocations: 7.844 kB / 0.5421 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001613/0.7689, allocations: 15.67 kB / 0.5421 GB, free: 84.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.058e-05/0.769, allocations: 15.59 kB / 0.5421 GB, free: 84.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (41): * Single equations (assignments): 41 * 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 6.776e-05/0.769, allocations: 109.3 kB / 0.5422 GB, free: 84.68 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002318/0.7693, allocations: 176.1 kB / 0.5424 GB, free: 84.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.429e-05/0.7693, allocations: 27.34 kB / 0.5424 GB, free: 84.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002483/0.7696, allocations: 180.2 kB / 0.5426 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.7696, allocations: 8 kB / 0.5426 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.7696, allocations: 0 / 0.5426 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.7696, allocations: 0 / 0.5426 GB, free: 84.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000601/0.7702, allocations: 0.5675 MB / 0.5432 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.7703, allocations: 0 / 0.5432 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.7705, allocations: 43.06 kB / 0.5432 GB, free: 84.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.7705, allocations: 7.438 kB / 0.5432 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.7705, allocations: 3.938 kB / 0.5432 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.7705, allocations: 7.344 kB / 0.5432 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.7706, allocations: 0 / 0.5432 GB, free: 84.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003563/0.7709, allocations: 470.4 kB / 0.5437 GB, free: 83.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.66e-05/0.771, allocations: 102.5 kB / 0.5438 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.771, allocations: 3.953 kB / 0.5438 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001795/0.7712, allocations: 6.922 kB / 0.5438 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.7713, allocations: 17.17 kB / 0.5438 GB, free: 83.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.518e-05/0.7713, allocations: 13.3 kB / 0.5438 GB, free: 83.57 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001199/0.7714, allocations: 186.9 kB / 0.544 GB, free: 83.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7714, allocations: 0 / 0.544 GB, free: 83.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003891/0.7718, allocations: 61.62 kB / 0.5441 GB, free: 83.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.motor.phi_el,machine.motor.w_el) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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.0006088/0.7724, allocations: 1.223 MB / 0.5452 GB, free: 82.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.7727, allocations: 165.3 kB / 0.5454 GB, free: 82.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.7727, allocations: 7.906 kB / 0.5454 GB, free: 82.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.447e-05/0.7728, allocations: 69.23 kB / 0.5455 GB, free: 82.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004656/0.7733, allocations: 70.56 kB / 0.5455 GB, free: 82.24 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.7746, allocations: 0.7502 MB / 0.5463 GB, free: 81.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002319/0.7748, allocations: 0.8266 MB / 0.5471 GB, free: 80.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001845/0.775, allocations: 46.81 kB / 0.5471 GB, free: 80.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001325/0.7752, allocations: 122.9 kB / 0.5472 GB, free: 80.78 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.7752, allocations: 4 kB / 0.5473 GB, free: 80.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02412/0.7993, allocations: 5.657 MB / 0.5528 GB, free: 75.22 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.7995, allocations: 136.4 kB / 0.5529 GB, free: 75.03 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.118/2.917, allocations: 0 / 0.5529 GB, free: 75.03 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCcharSpeed.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)