Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003277/0.003277, allocations: 173.5 kB / 16.76 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.609/2.609, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000764/0.0007641, allocations: 89.39 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2171/0.2171, allocations: 38.07 MB / 357.6 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006549/0.0006551, allocations: 12 kB / 423.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6049/0.6056, allocations: 56.31 MB / 480.3 MB, free: 9.207 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2263/0.832, allocations: 102.3 MB / 0.5689 GB, free: 56 kB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002942/0.835, allocations: 0.8779 MB / 0.5697 GB, free: 15.18 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06531/0.9003, allocations: 15.14 MB / 0.5845 GB, free: 15.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.358e-06/0.9004, allocations: 0 / 0.5845 GB, free: 15.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.847e-05/0.9005, allocations: 8 kB / 0.5845 GB, free: 15.86 MB / 426.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.00289/0.9034, allocations: 0.7929 MB / 0.5853 GB, free: 15.01 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.991e-05/0.9035, allocations: 8.031 kB / 0.5853 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002977/0.9038, allocations: 60.28 kB / 0.5854 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001951/0.9058, allocations: 0.5494 MB / 0.5859 GB, free: 14.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.885e-05/0.9059, allocations: 29.38 kB / 0.5859 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001563/0.906, allocations: 36.38 kB / 0.586 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.9074, allocations: 462.2 kB / 0.5864 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.349e-05/0.9074, allocations: 8.188 kB / 0.5864 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.739e-05/0.9075, allocations: 19.94 kB / 0.5864 GB, free: 13.77 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.9076, allocations: 11.98 kB / 0.5865 GB, free: 13.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008284/0.9084, allocations: 270.2 kB / 0.5867 GB, free: 13.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003934/0.9124, allocations: 1.87 MB / 0.5885 GB, free: 11.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000758/0.9131, allocations: 243.7 kB / 0.5888 GB, free: 11.25 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.9134, allocations: 90.61 kB / 0.5889 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.9135, allocations: 4 kB / 0.5889 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.9139, allocations: 181.5 kB / 0.589 GB, free: 10.95 MB / 426.7 MB Notification: Performance of pre-optimization done (n=24): time 2.875e-06/0.9139, allocations: 0 / 0.589 GB, free: 10.95 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.002943/0.9169, allocations: 0.9098 MB / 0.5899 GB, free: 9.977 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001024/0.917, allocations: 136.5 kB / 0.5901 GB, free: 9.812 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008571/0.9179, allocations: 393.9 kB / 0.5904 GB, free: 9.418 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.918, allocations: 33.7 kB / 0.5905 GB, free: 9.379 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002835/0.9183, allocations: 267.9 kB / 0.5907 GB, free: 9.113 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.9185, allocations: 98.73 kB / 0.5908 GB, free: 9.016 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.058e-05/0.9185, allocations: 8 kB / 0.5908 GB, free: 9.008 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.9187, allocations: 358.7 kB / 0.5912 GB, free: 8.648 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002677/0.919, allocations: 79.97 kB / 0.5912 GB, free: 8.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003868/0.9194, allocations: 216.6 kB / 0.5914 GB, free: 8.301 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006974/0.9201, allocations: 311.1 kB / 0.5917 GB, free: 7.941 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/0.9201, allocations: 4 kB / 0.5917 GB, free: 7.938 MB / 426.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001367/0.9215, allocations: 425.8 kB / 0.5921 GB, free: 7.512 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.9216, allocations: 4 kB / 0.5922 GB, free: 7.508 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.9216, allocations: 8.031 kB / 0.5922 GB, free: 7.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006636/0.9223, allocations: 96.77 kB / 0.5923 GB, free: 7.402 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000404/0.9227, allocations: 59.91 kB / 0.5923 GB, free: 7.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003303/0.926, allocations: 1.824 MB / 0.5941 GB, free: 5.395 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000556/0.9266, allocations: 23.98 kB / 0.5941 GB, free: 5.371 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.922e-05/0.9267, allocations: 16 kB / 0.5941 GB, free: 5.355 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 36 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004641/0.9271, allocations: 193.8 kB / 0.5943 GB, free: 5.156 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.9273, allocations: 43.44 kB / 0.5944 GB, free: 5.113 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009805/0.9282, allocations: 298.1 kB / 0.5946 GB, free: 4.805 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.9283, allocations: 4 kB / 0.5946 GB, free: 4.801 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.525e-05/0.9283, allocations: 7.984 kB / 0.5947 GB, free: 4.793 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.9283, allocations: 7.922 kB / 0.5947 GB, free: 4.785 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.9301, allocations: 0.7646 MB / 0.5954 GB, free: 3.961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.9301, allocations: 0 / 0.5954 GB, free: 3.961 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004172/0.9305, allocations: 47.91 kB / 0.5955 GB, free: 3.914 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003192/0.9309, allocations: 44.81 kB / 0.5955 GB, free: 3.867 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.733e-05/0.9309, allocations: 11.98 kB / 0.5955 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001907/0.9328, allocations: 1.437 MB / 0.5969 GB, free: 2.281 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.9329, allocations: 0 / 0.5969 GB, free: 2.281 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00118/0.9341, allocations: 0.493 MB / 0.5974 GB, free: 1.766 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003069/0.9344, allocations: 136.6 kB / 0.5975 GB, free: 1.613 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001003/0.9345, allocations: 7.938 kB / 0.5975 GB, free: 1.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003965/0.9349, allocations: 15.98 kB / 0.5975 GB, free: 1.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.935, allocations: 27.97 kB / 0.5976 GB, free: 1.562 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-05/0.9351, allocations: 8 kB / 0.5976 GB, free: 1.555 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006237/0.9357, allocations: 287 kB / 0.5979 GB, free: 1.277 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9357, allocations: 0 / 0.5979 GB, free: 1.277 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001061/0.9368, allocations: 123.9 kB / 0.598 GB, free: 1.156 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * 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.001518/0.9383, allocations: 422.6 kB / 0.5984 GB, free: 0.793 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.9397, allocations: 412 kB / 0.5988 GB, free: 388 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.9398, allocations: 0 / 0.5988 GB, free: 388 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005625/0.9403, allocations: 239.4 kB / 0.599 GB, free: 136 kB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.9416, allocations: 126 kB / 0.5991 GB, free: 12 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003192/0.9448, allocations: 1.391 MB / 0.6005 GB, free: 14.58 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.9454, allocations: 0.8582 MB / 0.6013 GB, free: 13.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.9457, allocations: 39.42 kB / 0.6013 GB, free: 13.66 MB / 442.7 MB Notification: Performance of SimCode: time 1.493e-06/0.9457, allocations: 0 / 0.6013 GB, free: 13.66 MB / 442.7 MB Notification: Performance of Templates: time 0.01872/0.9644, allocations: 8.297 MB / 0.6095 GB, free: 5.352 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)