Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001247/0.001247, allocations: 169.9 kB / 16.76 MB, free: 5.051 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.096/2.096, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.001104/0.001105, allocations: 93.08 kB / 271.3 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3992/0.3992, allocations: 38.07 MB / 357.6 MB, free: 1.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006169/0.0006176, allocations: 12 kB / 423.9 MB, free: 38.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5519/0.5526, allocations: 56.32 MB / 480.3 MB, free: 9.203 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2487/0.8013, allocations: 102.8 MB / 0.5694 GB, free: 15.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.003363/0.8048, allocations: 0.8778 MB / 0.5702 GB, free: 14.67 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07624/0.8811, allocations: 16.72 MB / 0.5866 GB, free: 13.75 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.727e-06/0.8811, allocations: 3.938 kB / 0.5866 GB, free: 13.75 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001012/0.8812, allocations: 15.94 kB / 0.5866 GB, free: 13.73 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.002991/0.8842, allocations: 0.8325 MB / 0.5874 GB, free: 12.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.149e-05/0.8843, allocations: 8.031 kB / 0.5874 GB, free: 12.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003371/0.8847, allocations: 68.19 kB / 0.5875 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002319/0.887, allocations: 0.5884 MB / 0.588 GB, free: 12.15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.182e-05/0.8871, allocations: 33.38 kB / 0.5881 GB, free: 12.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001923/0.8873, allocations: 52.22 kB / 0.5881 GB, free: 12.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001569/0.8889, allocations: 0.5196 MB / 0.5886 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.036e-05/0.889, allocations: 7.938 kB / 0.5886 GB, free: 11.49 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.434e-05/0.8891, allocations: 20 kB / 0.5887 GB, free: 11.47 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.914e-05/0.8891, allocations: 8 kB / 0.5887 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0011/0.8903, allocations: 331.7 kB / 0.589 GB, free: 11.14 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004977/0.8953, allocations: 2.08 MB / 0.591 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007489/0.8961, allocations: 227.7 kB / 0.5912 GB, free: 8.691 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002356/0.8963, allocations: 86.55 kB / 0.5913 GB, free: 8.598 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.208e-05/0.8964, allocations: 4 kB / 0.5913 GB, free: 8.594 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004207/0.8969, allocations: 165.7 kB / 0.5915 GB, free: 8.41 MB / 426.7 MB Notification: Performance of pre-optimization done (n=23): time 1.757e-05/0.8969, allocations: 0 / 0.5915 GB, free: 8.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002986/0.8999, allocations: 0.922 MB / 0.5924 GB, free: 7.426 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001124/0.9, allocations: 132.5 kB / 0.5925 GB, free: 7.266 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00091/0.901, allocations: 430 kB / 0.5929 GB, free: 6.836 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.903e-05/0.901, allocations: 29.7 kB / 0.5929 GB, free: 6.801 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003062/0.9014, allocations: 299.6 kB / 0.5932 GB, free: 6.504 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001306/0.9015, allocations: 90.73 kB / 0.5933 GB, free: 6.414 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.194e-05/0.9016, allocations: 8 kB / 0.5933 GB, free: 6.406 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001966/0.9018, allocations: 351.3 kB / 0.5937 GB, free: 6.055 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.9021, allocations: 84.83 kB / 0.5937 GB, free: 5.973 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000388/0.9025, allocations: 221.7 kB / 0.5939 GB, free: 5.695 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007427/0.9032, allocations: 329.5 kB / 0.5943 GB, free: 5.316 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.9032, allocations: 0 / 0.5943 GB, free: 5.316 MB / 426.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001607/0.9049, allocations: 447.4 kB / 0.5947 GB, free: 4.871 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.964e-05/0.9049, allocations: 18.06 kB / 0.5947 GB, free: 4.855 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.564e-05/0.905, allocations: 4 kB / 0.5947 GB, free: 4.852 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006976/0.9057, allocations: 92.77 kB / 0.5948 GB, free: 4.758 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004676/0.9062, allocations: 76.12 kB / 0.5949 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003192/0.9094, allocations: 1.689 MB / 0.5965 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005872/0.91, allocations: 20 kB / 0.5965 GB, free: 2.844 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.925e-05/0.9101, allocations: 19.98 kB / 0.5966 GB, free: 2.824 MB / 426.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: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0005927/0.9107, allocations: 221.6 kB / 0.5968 GB, free: 2.598 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001618/0.9109, allocations: 43.44 kB / 0.5968 GB, free: 2.555 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.9119, allocations: 278.4 kB / 0.5971 GB, free: 2.273 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.9119, allocations: 4 kB / 0.5971 GB, free: 2.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.718e-06/0.9119, allocations: 4 kB / 0.5971 GB, free: 2.266 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.912, allocations: 11.92 kB / 0.5971 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002045/0.914, allocations: 0.7726 MB / 0.5979 GB, free: 1.422 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.9141, allocations: 0 / 0.5979 GB, free: 1.422 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004302/0.9145, allocations: 39.98 kB / 0.5979 GB, free: 1.383 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003457/0.9149, allocations: 52.8 kB / 0.5979 GB, free: 1.328 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.9149, allocations: 7.938 kB / 0.5979 GB, free: 1.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.9168, allocations: 1.437 MB / 0.5993 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.234e-06/0.9168, allocations: 0 / 0.5993 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001299/0.9182, allocations: 485.9 kB / 0.5998 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003404/0.9185, allocations: 140.5 kB / 0.5999 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001262/0.9187, allocations: 4 kB / 0.6 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004369/0.9191, allocations: 19.92 kB / 0.6 GB, free: 15.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.9193, allocations: 23.97 kB / 0.6 GB, free: 15.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-05/0.9193, allocations: 4 kB / 0.6 GB, free: 15.04 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007748/0.9201, allocations: 299.1 kB / 0.6003 GB, free: 14.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.9201, allocations: 0 / 0.6003 GB, free: 14.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001121/0.9213, allocations: 131.9 kB / 0.6004 GB, free: 14.62 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001779/0.9231, allocations: 431.2 kB / 0.6008 GB, free: 14.25 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00148/0.9246, allocations: 383.4 kB / 0.6012 GB, free: 13.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.607e-06/0.9246, allocations: 4 kB / 0.6012 GB, free: 13.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006421/0.9252, allocations: 234.4 kB / 0.6014 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.9268, allocations: 142.7 kB / 0.6015 GB, free: 13.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004146/0.9309, allocations: 1.52 MB / 0.603 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008255/0.9318, allocations: 0.8817 MB / 0.6039 GB, free: 11.01 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.9321, allocations: 35.44 kB / 0.6039 GB, free: 10.97 MB / 442.7 MB Notification: Performance of SimCode: time 1.944e-06/0.9321, allocations: 0 / 0.6039 GB, free: 10.97 MB / 442.7 MB Notification: Performance of Templates: time 0.02494/0.9571, allocations: 8.92 MB / 0.6126 GB, free: 2.035 MB / 442.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)