Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 182.7 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.943/1.943, allocations: 205.4 MB / 221.9 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00112/0.00112, allocations: 98.75 kB / 270.2 MB, free: 13.29 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2567/0.2567, allocations: 38.07 MB / 356.6 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004697/0.0004696, allocations: 8 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 56.33 MB / 479 MB, free: 2.039 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.514/0.622, allocations: 102.2 MB / 0.5676 GB, free: 13.52 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.002469/0.6246, allocations: 0.868 MB / 0.5685 GB, free: 13.05 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06449/0.6891, allocations: 15.13 MB / 0.5833 GB, free: 220 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6892, allocations: 4 kB / 0.5833 GB, free: 216 kB / 378.7 MB Notification: Performance of Transformations before backend: time 5.153e-05/0.6892, allocations: 12 kB / 0.5833 GB, free: 204 kB / 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.002151/0.6914, allocations: 0.7933 MB / 0.5841 GB, free: 15.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.6915, allocations: 12.03 kB / 0.5841 GB, free: 15.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.6916, allocations: 59.3 kB / 0.5841 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002393/0.694, allocations: 0.7221 MB / 0.5848 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.485e-05/0.6941, allocations: 23.12 kB / 0.5848 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.6942, allocations: 42.69 kB / 0.5849 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.6953, allocations: 455 kB / 0.5853 GB, free: 14.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.213e-05/0.6954, allocations: 10.77 kB / 0.5853 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.216e-05/0.6955, allocations: 18.81 kB / 0.5854 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.6955, allocations: 11.94 kB / 0.5854 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007335/0.6963, allocations: 269.6 kB / 0.5856 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003413/0.6997, allocations: 1.86 MB / 0.5874 GB, free: 12.38 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007468/0.7005, allocations: 254.6 kB / 0.5877 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.665e-05/0.7005, allocations: 8.234 kB / 0.5877 GB, free: 12.15 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.7009, allocations: 173.4 kB / 0.5879 GB, free: 11.99 MB / 394.7 MB Notification: Performance of pre-optimization done (n=24): time 3.296e-06/0.701, allocations: 0 / 0.5879 GB, free: 11.99 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.002611/0.7036, allocations: 0.9125 MB / 0.5887 GB, free: 11.17 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.575e-05/0.7037, allocations: 136.8 kB / 0.5889 GB, free: 11.01 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006658/0.7044, allocations: 353 kB / 0.5892 GB, free: 10.73 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.7044, allocations: 32.89 kB / 0.5892 GB, free: 10.7 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002357/0.7047, allocations: 309.2 kB / 0.5895 GB, free: 10.45 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/0.7048, allocations: 92.98 kB / 0.5896 GB, free: 10.37 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.653e-05/0.7049, allocations: 3.25 kB / 0.5896 GB, free: 10.37 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.705, allocations: 325 kB / 0.5899 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.7053, allocations: 79.89 kB / 0.59 GB, free: 9.996 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00036/0.7057, allocations: 220.2 kB / 0.5902 GB, free: 9.762 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.706, allocations: 128.6 kB / 0.5903 GB, free: 9.676 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.024e-06/0.706, allocations: 3.953 kB / 0.5904 GB, free: 9.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001356/0.7074, allocations: 397.1 kB / 0.5907 GB, free: 9.367 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.7074, allocations: 11.98 kB / 0.5907 GB, free: 9.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.265e-05/0.7075, allocations: 7.953 kB / 0.5907 GB, free: 9.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006529/0.7081, allocations: 85.28 kB / 0.5908 GB, free: 9.273 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004497/0.7086, allocations: 71.47 kB / 0.5909 GB, free: 9.207 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003384/0.712, allocations: 1.84 MB / 0.5927 GB, free: 7.461 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004949/0.7125, allocations: 19.62 kB / 0.5927 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.7126, allocations: 23.42 kB / 0.5927 GB, free: 7.426 MB / 394.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.0003748/0.713, allocations: 191.5 kB / 0.5929 GB, free: 7.266 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.766e-05/0.7131, allocations: 47.14 kB / 0.593 GB, free: 7.223 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009112/0.714, allocations: 289 kB / 0.5932 GB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.714, allocations: 7.984 kB / 0.5932 GB, free: 7.008 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.7141, allocations: 11.98 kB / 0.5933 GB, free: 6.996 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.7141, allocations: 4 kB / 0.5933 GB, free: 6.992 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001688/0.7158, allocations: 0.762 MB / 0.594 GB, free: 6.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.7158, allocations: 4 kB / 0.594 GB, free: 6.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004523/0.7163, allocations: 47.19 kB / 0.5941 GB, free: 6.293 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003471/0.7166, allocations: 51.81 kB / 0.5941 GB, free: 6.246 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/0.7167, allocations: 11.42 kB / 0.5941 GB, free: 6.238 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/0.7186, allocations: 1.446 MB / 0.5955 GB, free: 4.766 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.7186, allocations: 0 / 0.5955 GB, free: 4.766 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.7199, allocations: 0.5119 MB / 0.596 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.7201, allocations: 138.8 kB / 0.5962 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.149e-05/0.7202, allocations: 7.688 kB / 0.5962 GB, free: 4.18 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.7206, allocations: 15.73 kB / 0.5962 GB, free: 4.168 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.923e-05/0.7207, allocations: 27.42 kB / 0.5962 GB, free: 4.145 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.7208, allocations: 12.36 kB / 0.5962 GB, free: 4.133 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005074/0.7213, allocations: 273.2 kB / 0.5965 GB, free: 3.926 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7213, allocations: 0 / 0.5965 GB, free: 3.926 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008191/0.7221, allocations: 131.9 kB / 0.5966 GB, free: 3.812 MB / 394.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.001296/0.7234, allocations: 431.5 kB / 0.597 GB, free: 3.449 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001335/0.7248, allocations: 400.4 kB / 0.5974 GB, free: 3.117 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.7248, allocations: 0 / 0.5974 GB, free: 3.117 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.7254, allocations: 244.9 kB / 0.5976 GB, free: 2.898 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009876/0.7264, allocations: 116.5 kB / 0.5977 GB, free: 2.809 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003005/0.7295, allocations: 1.388 MB / 0.5991 GB, free: 1.465 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000588/0.7301, allocations: 0.8655 MB / 0.5999 GB, free: 0.582 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002182/0.7303, allocations: 43.3 kB / 0.6 GB, free: 0.543 MB / 394.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7303, allocations: 0 / 0.6 GB, free: 0.543 MB / 394.7 MB Notification: Performance of Templates: time 0.01803/0.7484, allocations: 8.11 MB / 0.6079 GB, free: 8.508 MB / 410.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)