Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.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.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001287/0.001287, allocations: 117.7 kB / 17.7 MB, free: 5.305 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.001348/0.001348, allocations: 191 kB / 18.63 MB, free: 4.379 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.584/1.584, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1804/0.1804, allocations: 37.98 MB / 309.8 MB, free: 5.984 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.001469/0.001469, allocations: 63.91 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2955/0.297, allocations: 55.25 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed): time 0.006169/0.3032, allocations: 4.8 MB / 436.8 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002568/0.3059, allocations: 1.523 MB / 438.4 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.3061, allocations: 19.88 kB / 438.4 MB, free: 13.14 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003849/0.3065, allocations: 111.2 kB / 438.5 MB, free: 13.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006346/0.3072, allocations: 270.4 kB / 438.7 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.3076, allocations: 131.8 kB / 438.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006048/0.3082, allocations: 0.5916 MB / 439.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004205/0.3086, allocations: 386.6 kB / 439.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002503/0.3089, allocations: 235.1 kB / 440.1 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002982/0.3092, allocations: 235.1 kB / 440.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.759e-05/0.3092, allocations: 40 kB / 440.3 MB, free: 11.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.557e-05/0.3093, allocations: 40 kB / 440.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.3094, allocations: 127.6 kB / 440.5 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.3096, allocations: 227 kB / 440.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004003/0.31, allocations: 0.4984 MB / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.31, allocations: 0 / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.31, allocations: 0 / 441.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.31, allocations: 0 / 441.2 MB, free: 10.27 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001092/0.3111, allocations: 0.724 MB / 441.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.3112, allocations: 11.89 kB / 442 MB, free: 9.488 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.183e-05/0.3113, allocations: 44.47 kB / 442 MB, free: 9.445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005166/0.3118, allocations: 416.1 kB / 442.4 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.573e-05/0.3119, allocations: 58.64 kB / 442.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.903e-05/0.312, allocations: 36 kB / 442.5 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005468/0.3125, allocations: 432.1 kB / 442.9 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.192e-05/0.3126, allocations: 7.844 kB / 442.9 MB, free: 8.438 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.211e-05/0.3126, allocations: 16 kB / 442.9 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3126, allocations: 15.94 kB / 443 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004309/0.313, allocations: 278 kB / 443.2 MB, free: 8.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001592/0.3146, allocations: 1.826 MB / 445.1 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.3149, allocations: 179.7 kB / 445.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001205/0.3151, allocations: 74.55 kB / 445.3 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.211e-05/0.3151, allocations: 4 kB / 445.3 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.024e-05/0.3151, allocations: 38.56 kB / 445.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.104e-06/0.3151, allocations: 0 / 445.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=19): time 0.001092/0.3162, allocations: 0.702 MB / 446.1 MB, free: 5.094 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.313e-05/0.3163, allocations: 106.8 kB / 446.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002295/0.3165, allocations: 320.6 kB / 446.5 MB, free: 4.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.3165, allocations: 25.7 kB / 446.5 MB, free: 4.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.3166, allocations: 251.5 kB / 446.7 MB, free: 4.355 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.775e-05/0.3167, allocations: 63.02 kB / 446.8 MB, free: 4.293 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.321e-05/0.3168, allocations: 66.02 kB / 446.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.657e-05/0.3168, allocations: 342.8 kB / 447.2 MB, free: 3.879 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.317, allocations: 72.61 kB / 447.3 MB, free: 3.809 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001781/0.3172, allocations: 197.5 kB / 447.5 MB, free: 3.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003508/0.3175, allocations: 292 kB / 447.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3175, allocations: 0 / 447.8 MB, free: 3.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0004388/0.318, allocations: 325 kB / 448.1 MB, free: 2.891 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.318, allocations: 11.94 kB / 448.1 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.318, allocations: 4 kB / 448.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.3181, allocations: 11.94 kB / 448.1 MB, free: 2.863 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000264/0.3183, allocations: 79.89 kB / 448.2 MB, free: 2.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.258e-06/0.3183, allocations: 8 kB / 448.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.3185, allocations: 16.22 kB / 448.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.3186, allocations: 16 kB / 448.2 MB, free: 2.746 MB / 318.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001406/0.3187, allocations: 189.6 kB / 448.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.262e-05/0.3188, allocations: 35.56 kB / 448.4 MB, free: 2.516 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003273/0.3191, allocations: 184.8 kB / 448.6 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.3191, allocations: 4 kB / 448.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3191, allocations: 0 / 448.6 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3191, allocations: 7.922 kB / 448.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007204/0.3199, allocations: 0.6232 MB / 449.2 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.3199, allocations: 4 kB / 449.3 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002158/0.3201, allocations: 35.98 kB / 449.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.3201, allocations: 4 kB / 449.3 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.3201, allocations: 8 kB / 449.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3201, allocations: 3.938 kB / 449.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.3202, allocations: 3.984 kB / 449.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004702/0.3206, allocations: 448 kB / 449.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.3207, allocations: 108.8 kB / 449.8 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.3207, allocations: 3.938 kB / 449.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001917/0.3209, allocations: 8 kB / 449.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.321, allocations: 19.97 kB / 449.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.321, allocations: 8 kB / 449.9 MB, free: 0.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.3212, allocations: 215.1 kB / 450.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3212, allocations: 0 / 450.1 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000386/0.3216, allocations: 75.94 kB / 450.2 MB, free: 0.6719 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (efficiency.pav,efficiency.qav,machine.rotor.phi,machine.rotor.w) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00011/0.3217, allocations: 99.19 kB / 450.3 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003607/0.3221, allocations: 200.6 kB / 450.5 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3221, allocations: 0 / 450.5 MB, free: 380 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.3222, allocations: 75.91 kB / 450.5 MB, free: 304 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.3229, allocations: 105 kB / 450.6 MB, free: 200 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.3244, allocations: 0.9005 MB / 451.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.3248, allocations: 0.8146 MB / 452.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001966/0.325, allocations: 51.25 kB / 452.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.38e-05/0.3251, allocations: 27.44 kB / 452.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3251, allocations: 0 / 452.4 MB, free: 14.34 MB / 334.1 MB Notification: Performance of Templates: time 0.007439/0.3326, allocations: 3.401 MB / 455.8 MB, free: 10.95 MB / 334.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCcharSpeed.pipe 2>&1)