Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001537/0.001537, allocations: 179.3 kB / 8.351 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.635/1.635, 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.001739/0.00174, allocations: 109.6 kB / 248.1 MB, free: 32 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1595/0.1595, allocations: 37.93 MB / 330.9 MB, free: 2.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.999e-05/2.001e-05, allocations: 4 kB / 390.5 MB, free: 6.996 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.274, allocations: 53.22 MB / 443.7 MB, free: 17.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1253/0.3994, allocations: 94.33 MB / 0.5254 GB, free: 3.281 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.3997, allocations: 87.95 kB / 0.5255 GB, free: 3.195 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2449/0.6446, allocations: 12.84 MB / 0.538 GB, free: 89.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.6447, allocations: 0 / 0.538 GB, free: 89.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.6447, allocations: 10.25 kB / 0.538 GB, free: 89.46 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.0009949/0.6457, allocations: 0.6823 MB / 0.5387 GB, free: 88.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.6458, allocations: 9.375 kB / 0.5387 GB, free: 88.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.6459, allocations: 55.94 kB / 0.5388 GB, free: 88.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.6471, allocations: 0.6633 MB / 0.5394 GB, free: 88.35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.725e-05/0.6472, allocations: 50.25 kB / 0.5395 GB, free: 88.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.672e-05/0.6472, allocations: 31.31 kB / 0.5395 GB, free: 88.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004232/0.6477, allocations: 269.9 kB / 0.5398 GB, free: 88.19 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005631/0.6482, allocations: 439.1 kB / 0.5402 GB, free: 87.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.6483, allocations: 7.891 kB / 0.5402 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.6483, allocations: 7.797 kB / 0.5402 GB, free: 87.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.6483, allocations: 15.62 kB / 0.5402 GB, free: 87.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001698/0.65, allocations: 1.892 MB / 0.5421 GB, free: 86.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.6503, allocations: 192.5 kB / 0.5422 GB, free: 86.06 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.919e-05/0.6504, allocations: 84.38 kB / 0.5423 GB, free: 86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.6504, allocations: 3.188 kB / 0.5423 GB, free: 86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.6505, allocations: 33.97 kB / 0.5423 GB, free: 85.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=20): time 1.713e-06/0.6505, allocations: 0 / 0.5423 GB, free: 85.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001091/0.6516, allocations: 0.8944 MB / 0.5432 GB, free: 85.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.286e-05/0.6516, allocations: 110.9 kB / 0.5433 GB, free: 85.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001947/0.6518, allocations: 250.7 kB / 0.5436 GB, free: 84.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.6518, allocations: 25.7 kB / 0.5436 GB, free: 84.88 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.6519, allocations: 273.9 kB / 0.5439 GB, free: 84.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.304e-05/0.652, allocations: 81.88 kB / 0.5439 GB, free: 84.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.162e-05/0.652, allocations: 0 / 0.5439 GB, free: 84.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.651e-05/0.6521, allocations: 346.5 kB / 0.5443 GB, free: 84.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.583e-05/0.6522, allocations: 69.39 kB / 0.5443 GB, free: 84.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001399/0.6524, allocations: 197.1 kB / 0.5445 GB, free: 83.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005322/0.6529, allocations: 287.7 kB / 0.5448 GB, free: 83.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.6529, allocations: 3.844 kB / 0.5448 GB, free: 83.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0005485/0.6535, allocations: 356.4 kB / 0.5451 GB, free: 83.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.687e-05/0.6535, allocations: 6.031 kB / 0.5451 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.6535, allocations: 4 kB / 0.5451 GB, free: 83.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002731/0.6538, allocations: 81.33 kB / 0.5452 GB, free: 83.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002281/0.654, allocations: 71.91 kB / 0.5453 GB, free: 83.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001333/0.6554, allocations: 1.712 MB / 0.547 GB, free: 81.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001954/0.6556, allocations: 20 kB / 0.547 GB, free: 81.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.049e-05/0.6556, allocations: 16 kB / 0.547 GB, free: 81.57 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (35): * Single equations (assignments): 34 * 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: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 9.622e-05/0.6557, allocations: 116.9 kB / 0.5471 GB, free: 81.45 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002903/0.656, allocations: 211.1 kB / 0.5473 GB, free: 81.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.295e-05/0.6561, allocations: 31.58 kB / 0.5473 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.07e-05/0.6562, allocations: 34.95 kB / 0.5474 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.6562, allocations: 3.984 kB / 0.5474 GB, free: 81.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.6562, allocations: 8.062 kB / 0.5474 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.6562, allocations: 0 / 0.5474 GB, free: 81.16 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007412/0.657, allocations: 0.6942 MB / 0.5481 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.657, allocations: 0 / 0.5481 GB, free: 80.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002492/0.6572, allocations: 55.91 kB / 0.5481 GB, free: 80.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.274e-05/0.6573, allocations: 16.86 kB / 0.5481 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.6573, allocations: 4 kB / 0.5481 GB, free: 80.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005192/0.6578, allocations: 1.233 MB / 0.5493 GB, free: 78.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.6579, allocations: 4.047 kB / 0.5493 GB, free: 78.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003805/0.6582, allocations: 492 kB / 0.5498 GB, free: 78.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.365e-05/0.6583, allocations: 120.7 kB / 0.5499 GB, free: 78.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.6584, allocations: 4 kB / 0.5499 GB, free: 78.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001849/0.6586, allocations: 7.984 kB / 0.5499 GB, free: 78.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.89e-05/0.6586, allocations: 15.98 kB / 0.55 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.6587, allocations: 11.92 kB / 0.55 GB, free: 78.29 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001233/0.6588, allocations: 192.6 kB / 0.5501 GB, free: 78.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.72e-07/0.6588, allocations: 0 / 0.5501 GB, free: 78.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004604/0.6593, allocations: 83.94 kB / 0.5502 GB, free: 78.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * 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: 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.000642/0.6599, allocations: 1.17 MB / 0.5514 GB, free: 76.81 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004944/0.6604, allocations: 333.3 kB / 0.5517 GB, free: 76.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6604, allocations: 4 kB / 0.5517 GB, free: 76.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001926/0.6606, allocations: 186.9 kB / 0.5519 GB, free: 76.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004757/0.6611, allocations: 85.27 kB / 0.552 GB, free: 76.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001317/0.6624, allocations: 0.7482 MB / 0.5527 GB, free: 75.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.6627, allocations: 0.8584 MB / 0.5535 GB, free: 74.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001827/0.6629, allocations: 47.25 kB / 0.5536 GB, free: 74.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001472/0.6631, allocations: 139.4 kB / 0.5537 GB, free: 74.33 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.6631, allocations: 4 kB / 0.5537 GB, free: 74.33 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02597/0.6891, allocations: 6.839 MB / 0.5604 GB, free: 67.49 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001482/0.6893, allocations: 141.1 kB / 0.5605 GB, free: 67.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.199/2.888, allocations: 0 / 0.5605 GB, free: 67.29 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)