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/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_ser,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_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_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 91.45 kB / 16.65 MB, free: 6.598 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.001528/0.001528, allocations: 180.2 kB / 17.56 MB, free: 6.199 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.561/1.561, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1807/0.1807, allocations: 38.04 MB / 310.1 MB, free: 6.012 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.0005871/0.0005872, allocations: 12 kB / 377.2 MB, free: 2.816 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2847, allocations: 56.33 MB / 433.5 MB, free: 18.72 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.005672/0.2905, allocations: 5.391 MB / 438.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003362/0.2939, allocations: 2.108 MB / 441 MB, free: 11.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007103/0.2946, allocations: 27.81 kB / 441 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006534/0.2953, allocations: 127.3 kB / 441.1 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001234/0.2965, allocations: 318.4 kB / 441.4 MB, free: 10.72 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006713/0.2972, allocations: 179.8 kB / 441.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001126/0.2984, allocations: 0.8293 MB / 442.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005517/0.2989, allocations: 345.5 kB / 442.8 MB, free: 9.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005214/0.2995, allocations: 246.8 kB / 443 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005615/0.3, allocations: 270.8 kB / 443.3 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001113/0.3002, allocations: 27.94 kB / 443.3 MB, free: 8.836 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000305/0.3005, allocations: 71.95 kB / 443.4 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.3006, allocations: 115.6 kB / 443.5 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000334/0.301, allocations: 264.4 kB / 443.8 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006178/0.3016, allocations: 0.6149 MB / 444.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.3016, allocations: 0 / 444.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3016, allocations: 0 / 444.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.774e-05/0.3017, allocations: 0 / 444.4 MB, free: 7.77 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001488/0.3032, allocations: 0.7573 MB / 445.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/0.3032, allocations: 11.97 kB / 445.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001495/0.3034, allocations: 56.28 kB / 445.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007386/0.3041, allocations: 466 kB / 445.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.3042, allocations: 29 kB / 445.7 MB, free: 6.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.3042, allocations: 36 kB / 445.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006318/0.3049, allocations: 457.1 kB / 446.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.3049, allocations: 0 / 446.2 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.3049, allocations: 16 kB / 446.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.305, allocations: 15.98 kB / 446.2 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.3054, allocations: 282.3 kB / 446.5 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001862/0.3073, allocations: 1.874 MB / 448.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.3077, allocations: 243.5 kB / 448.6 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.3079, allocations: 90.98 kB / 448.7 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.437e-05/0.3079, allocations: 15.94 kB / 448.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.3082, allocations: 173.7 kB / 448.9 MB, free: 2.992 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.024e-06/0.3082, allocations: 3.984 kB / 448.9 MB, free: 2.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001529/0.3097, allocations: 0.9015 MB / 449.8 MB, free: 2.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.3098, allocations: 132.5 kB / 449.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003949/0.3102, allocations: 409.8 kB / 450.3 MB, free: 1.461 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.548e-05/0.3102, allocations: 29.7 kB / 450.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.3103, allocations: 255.8 kB / 450.6 MB, free: 1.172 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.576e-05/0.3104, allocations: 94.8 kB / 450.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.57e-05/0.3105, allocations: 41.7 kB / 450.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.237e-05/0.3105, allocations: 354.8 kB / 451.1 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001414/0.3107, allocations: 79.97 kB / 451.1 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001708/0.3109, allocations: 216.2 kB / 451.3 MB, free: 336 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.3112, allocations: 311 kB / 451.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.3112, allocations: 4 kB / 451.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008412/0.3121, allocations: 433.2 kB / 452.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3121, allocations: 4 kB / 452.1 MB, free: 15.53 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.636e-06/0.3121, allocations: 4 kB / 452.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004131/0.3126, allocations: 97.3 kB / 452.2 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.3128, allocations: 63.91 kB / 452.2 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002267/0.3151, allocations: 1.823 MB / 454.1 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002791/0.3154, allocations: 19.98 kB / 454.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.3154, allocations: 20 kB / 454.1 MB, free: 13.36 MB / 334.1 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 (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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002265/0.3156, allocations: 193.6 kB / 454.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.096e-05/0.3157, allocations: 47.5 kB / 454.3 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005695/0.3163, allocations: 294.2 kB / 454.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3163, allocations: 4 kB / 454.6 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.3163, allocations: 7.938 kB / 454.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3163, allocations: 3.984 kB / 454.6 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.3174, allocations: 0.7684 MB / 455.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.3174, allocations: 7.922 kB / 455.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.3177, allocations: 43.92 kB / 455.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001998/0.3179, allocations: 44.81 kB / 455.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/0.3179, allocations: 11.98 kB / 455.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001214/0.3191, allocations: 1.437 MB / 456.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3192, allocations: 0 / 456.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007129/0.3199, allocations: 0.4976 MB / 457.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.32, allocations: 136.6 kB / 457.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.906e-05/0.3201, allocations: 4 kB / 457.6 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002487/0.3203, allocations: 19.98 kB / 457.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.64e-05/0.3204, allocations: 23.97 kB / 457.6 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.927e-05/0.3205, allocations: 12 kB / 457.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003885/0.3209, allocations: 287.1 kB / 457.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.02e-07/0.3209, allocations: 0 / 457.9 MB, free: 9.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005954/0.3215, allocations: 108 kB / 458 MB, free: 9.172 MB / 334.1 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 (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.001073/0.3226, allocations: 404.7 kB / 458.4 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000929/0.3235, allocations: 407 kB / 458.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3235, allocations: 0 / 458.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004035/0.3239, allocations: 243.8 kB / 459.1 MB, free: 8.168 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000767/0.3247, allocations: 121.8 kB / 459.2 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.3267, allocations: 1.37 MB / 460.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.3272, allocations: 0.8584 MB / 461.4 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002784/0.3275, allocations: 67.34 kB / 461.5 MB, free: 5.695 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.805e-05/0.3276, allocations: 31.44 kB / 461.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3276, allocations: 0 / 461.5 MB, free: 5.664 MB / 334.1 MB Notification: Performance of Templates: time 0.01362/0.3412, allocations: 5.806 MB / 467.3 MB, free: 15.86 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.makefile Environment - environmentSimulation: (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1) Environment - environmentSimulation: