Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001143/0.001143, allocations: 179.4 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.658/1.658, allocations: 194.3 MB / 203.1 MB, free: 12.95 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.001647/0.001647, allocations: 120.6 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.163/0.163, allocations: 37.94 MB / 330.9 MB, free: 2.656 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.196e-05/2.19e-05, allocations: 8 kB / 390.5 MB, free: 7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.286, allocations: 53.22 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1266/0.4126, allocations: 95.73 MB / 0.5268 GB, free: 1.809 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001994/0.4147, allocations: 0.5776 MB / 0.5273 GB, free: 1.23 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.288/0.7027, allocations: 14.38 MB / 0.5414 GB, free: 87.86 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.7028, allocations: 0 / 0.5414 GB, free: 87.86 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.695e-05/0.7028, allocations: 16.31 kB / 0.5414 GB, free: 87.86 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001018/0.7038, allocations: 0.7475 MB / 0.5421 GB, free: 87.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.7039, allocations: 8.031 kB / 0.5421 GB, free: 87.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.261e-05/0.704, allocations: 55.34 kB / 0.5422 GB, free: 87.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.7051, allocations: 0.6906 MB / 0.5429 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.7052, allocations: 12 kB / 0.5429 GB, free: 86.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.7052, allocations: 24 kB / 0.5429 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003562/0.7056, allocations: 241.4 kB / 0.5431 GB, free: 86.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004788/0.7061, allocations: 403.2 kB / 0.5435 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.7061, allocations: 0 / 0.5435 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.7062, allocations: 0 / 0.5435 GB, free: 85.63 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.7062, allocations: 15.94 kB / 0.5435 GB, free: 85.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.7078, allocations: 1.792 MB / 0.5453 GB, free: 83.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003722/0.7081, allocations: 236.1 kB / 0.5455 GB, free: 83.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.7083, allocations: 75 kB / 0.5456 GB, free: 83.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.7083, allocations: 4.188 kB / 0.5456 GB, free: 83.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002082/0.7085, allocations: 158.4 kB / 0.5457 GB, free: 83.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 1.443e-06/0.7085, allocations: 0 / 0.5457 GB, free: 83.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.00147/0.71, allocations: 1.014 MB / 0.5467 GB, free: 82.11 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.7101, allocations: 132.5 kB / 0.5468 GB, free: 81.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002686/0.7103, allocations: 309.1 kB / 0.5471 GB, free: 81.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.7104, allocations: 25.7 kB / 0.5472 GB, free: 81.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.7105, allocations: 263.8 kB / 0.5474 GB, free: 81.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.951e-05/0.7105, allocations: 86.66 kB / 0.5475 GB, free: 81.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.485e-05/0.7106, allocations: 4 kB / 0.5475 GB, free: 81.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.7106, allocations: 354.7 kB / 0.5478 GB, free: 80.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.7108, allocations: 76.78 kB / 0.5479 GB, free: 80.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000167/0.7109, allocations: 206.3 kB / 0.5481 GB, free: 80.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.7111, allocations: 110 kB / 0.5482 GB, free: 80.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.7111, allocations: 0 / 0.5482 GB, free: 80.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006561/0.7118, allocations: 399.6 kB / 0.5486 GB, free: 80.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.065e-05/0.7118, allocations: 29.7 kB / 0.5486 GB, free: 80.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.7118, allocations: 4 kB / 0.5486 GB, free: 80.03 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003551/0.7122, allocations: 89.25 kB / 0.5487 GB, free: 79.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002084/0.7124, allocations: 75.84 kB / 0.5488 GB, free: 79.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001491/0.7139, allocations: 1.736 MB / 0.5505 GB, free: 78.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/0.7141, allocations: 23.98 kB / 0.5505 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.7142, allocations: 12 kB / 0.5505 GB, free: 77.99 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 8.873e-05/0.7143, allocations: 116.9 kB / 0.5506 GB, free: 77.87 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004108/0.7147, allocations: 265.7 kB / 0.5509 GB, free: 77.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.194e-05/0.7147, allocations: 35.53 kB / 0.5509 GB, free: 77.56 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004657/0.7152, allocations: 285.6 kB / 0.5512 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-06/0.7152, allocations: 7.938 kB / 0.5512 GB, free: 77.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.7152, allocations: 3.984 kB / 0.5512 GB, free: 77.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.7153, allocations: 3.984 kB / 0.5512 GB, free: 77.25 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007859/0.716, allocations: 0.6876 MB / 0.5519 GB, free: 76.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.7161, allocations: 4 kB / 0.5519 GB, free: 76.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002271/0.7163, allocations: 55.92 kB / 0.5519 GB, free: 76.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001692/0.7165, allocations: 52.7 kB / 0.552 GB, free: 76.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.847e-05/0.7165, allocations: 4 kB / 0.552 GB, free: 76.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007977/0.7173, allocations: 1.373 MB / 0.5533 GB, free: 74.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.7173, allocations: 3.953 kB / 0.5533 GB, free: 74.92 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005532/0.7179, allocations: 0.4971 MB / 0.5538 GB, free: 74.39 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001033/0.718, allocations: 136.6 kB / 0.5539 GB, free: 74.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.69e-05/0.718, allocations: 0 / 0.5539 GB, free: 74.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002037/0.7183, allocations: 11.98 kB / 0.5539 GB, free: 74.22 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.596e-05/0.7183, allocations: 27.91 kB / 0.554 GB, free: 74.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.7184, allocations: 8 kB / 0.554 GB, free: 74.19 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001829/0.7185, allocations: 239 kB / 0.5542 GB, free: 73.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7186, allocations: 0 / 0.5542 GB, free: 73.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004941/0.7191, allocations: 99.98 kB / 0.5543 GB, free: 73.86 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001381/0.7204, allocations: 1.389 MB / 0.5557 GB, free: 72.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006585/0.7211, allocations: 429.9 kB / 0.5561 GB, free: 72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.7211, allocations: 0 / 0.5561 GB, free: 72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.7214, allocations: 229.4 kB / 0.5563 GB, free: 71.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004985/0.7219, allocations: 93.95 kB / 0.5564 GB, free: 71.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.7234, allocations: 0.8956 MB / 0.5573 GB, free: 70.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.7238, allocations: 0.8663 MB / 0.5581 GB, free: 69.84 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002208/0.724, allocations: 59.23 kB / 0.5582 GB, free: 69.78 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001811/0.7242, allocations: 155.3 kB / 0.5583 GB, free: 69.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.7242, allocations: 0 / 0.5583 GB, free: 69.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03104/0.7552, allocations: 8.617 MB / 0.5667 GB, free: 61 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002182/0.7555, allocations: 176.5 kB / 0.5669 GB, free: 60.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.237/2.992, allocations: 0 / 0.5669 GB, free: 60.79 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)