Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 114.4 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1874/0.1874, allocations: 37.98 MB / 309.8 MB, free: 5.973 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002239, allocations: 63.91 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.312, allocations: 55.23 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006408/0.3185, allocations: 5.699 MB / 437.7 MB, free: 13.78 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003235/0.3217, allocations: 2.085 MB / 439.8 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003632/0.3221, allocations: 15.94 kB / 439.8 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005895/0.3228, allocations: 166.8 kB / 440 MB, free: 11.5 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0009251/0.3237, allocations: 421.6 kB / 440.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004799/0.3242, allocations: 229.8 kB / 440.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008141/0.325, allocations: 0.8369 MB / 441.4 MB, free: 10.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004571/0.3255, allocations: 0.4928 MB / 441.9 MB, free: 9.527 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003839/0.3259, allocations: 354.6 kB / 442.3 MB, free: 9.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003796/0.3263, allocations: 334.7 kB / 442.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.536e-05/0.3264, allocations: 59.94 kB / 442.7 MB, free: 8.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001808/0.3265, allocations: 95.98 kB / 442.8 MB, free: 8.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001742/0.3267, allocations: 183.5 kB / 442.9 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002413/0.327, allocations: 302.5 kB / 443.2 MB, free: 8.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006291/0.3276, allocations: 0.7437 MB / 444 MB, free: 7.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3276, allocations: 3.938 kB / 444 MB, free: 7.473 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3276, allocations: 0 / 444 MB, free: 7.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3277, allocations: 0 / 444 MB, free: 7.473 MB / 318.1 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.001487/0.3291, allocations: 0.888 MB / 444.9 MB, free: 6.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.299e-05/0.3292, allocations: 11.89 kB / 444.9 MB, free: 6.527 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.3293, allocations: 64.19 kB / 444.9 MB, free: 6.465 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008959/0.3302, allocations: 0.5253 MB / 445.5 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.3303, allocations: 32.94 kB / 445.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.3304, allocations: 47.98 kB / 445.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006694/0.3311, allocations: 0.5212 MB / 446.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.196e-05/0.3311, allocations: 0 / 446.1 MB, free: 5.258 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.161e-05/0.3311, allocations: 23.98 kB / 446.1 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.099e-05/0.3312, allocations: 17 kB / 446.1 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004572/0.3317, allocations: 343.6 kB / 446.4 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002126/0.3338, allocations: 2.05 MB / 448.5 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.3342, allocations: 231.8 kB / 448.7 MB, free: 2.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001119/0.3343, allocations: 86.67 kB / 448.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.3343, allocations: 8.062 kB / 448.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.3346, allocations: 169.7 kB / 449 MB, free: 2.176 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.3346, allocations: 0 / 449 MB, free: 2.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001432/0.336, allocations: 0.9197 MB / 449.9 MB, free: 1.195 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.3361, allocations: 132.5 kB / 450 MB, free: 1.035 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003886/0.3365, allocations: 429.8 kB / 450.5 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.3365, allocations: 29.7 kB / 450.5 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001256/0.3366, allocations: 295.9 kB / 450.8 MB, free: 284 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.885e-05/0.3367, allocations: 94.7 kB / 450.9 MB, free: 188 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.509e-05/0.3368, allocations: 70.14 kB / 450.9 MB, free: 108 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001595/0.337, allocations: 358.7 kB / 451.3 MB, free: 15.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001852/0.3372, allocations: 92.77 kB / 451.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002636/0.3374, allocations: 217.5 kB / 451.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.3379, allocations: 325.2 kB / 451.9 MB, free: 15.01 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3379, allocations: 7.938 kB / 451.9 MB, free: 15 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008898/0.3388, allocations: 441.8 kB / 452.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3388, allocations: 4 kB / 452.3 MB, free: 14.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3388, allocations: 4 kB / 452.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004097/0.3392, allocations: 96.7 kB / 452.4 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002648/0.3395, allocations: 71.91 kB / 452.5 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.3422, allocations: 1.829 MB / 454.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.3425, allocations: 27.92 kB / 454.4 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3425, allocations: 16 kB / 454.4 MB, free: 12.37 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002722/0.3428, allocations: 205.7 kB / 454.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.3429, allocations: 51.47 kB / 454.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.553e-05/0.343, allocations: 51.86 kB / 454.7 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.343, allocations: 4 kB / 454.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.343, allocations: 0 / 454.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.343, allocations: 0 / 454.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001538/0.3445, allocations: 0.7721 MB / 455.5 MB, free: 11.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.3446, allocations: 8 kB / 455.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003601/0.3449, allocations: 55.91 kB / 455.5 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000275/0.3452, allocations: 44.81 kB / 455.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.306e-05/0.3453, allocations: 11.98 kB / 455.6 MB, free: 11.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.3471, allocations: 1.547 MB / 457.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3471, allocations: 0 / 457.1 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009254/0.348, allocations: 473.3 kB / 457.6 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.3482, allocations: 136.6 kB / 457.7 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.916e-05/0.3483, allocations: 8 kB / 457.7 MB, free: 8.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002905/0.3486, allocations: 11.98 kB / 457.7 MB, free: 8.754 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.412e-05/0.3487, allocations: 23.91 kB / 457.8 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.701e-05/0.3488, allocations: 12 kB / 457.8 MB, free: 8.719 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004695/0.3492, allocations: 299.1 kB / 458.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.3492, allocations: 0 / 458.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007325/0.35, allocations: 116 kB / 458.2 MB, free: 8.316 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001296/0.3513, allocations: 405.3 kB / 458.6 MB, free: 7.977 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001071/0.3524, allocations: 398.6 kB / 459 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.3524, allocations: 0 / 459 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004745/0.3529, allocations: 238.9 kB / 459.2 MB, free: 7.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009515/0.3538, allocations: 132.1 kB / 459.3 MB, free: 7.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3565, allocations: 1.175 MB / 460.5 MB, free: 5.992 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006302/0.3572, allocations: 0.8777 MB / 461.4 MB, free: 5.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000313/0.3575, allocations: 68.22 kB / 461.4 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.3576, allocations: 47.42 kB / 461.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3576, allocations: 0 / 461.5 MB, free: 4.977 MB / 334.1 MB Notification: Performance of Templates: time 0.01758/0.3752, allocations: 6.434 MB / 467.9 MB, free: 14.53 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)